Exercise: Reverse string with for-loop
Create a for-loop that assigns the reverse of text to the variable reversed_text.
text = '!nuf si gnimmargorp nohtyP'
reversed_text = ''
# add code here...
for
print(reversed_text)
# expected output: 'Python programming is fun!'
Python
Setting up Python environment...
Output