How to reverse a string value.
mahitaravi (0)

how to reverse a string value in python
Without using define
and using range

You are viewing a single comment. View All
VulcanWM (2902)
string = “hi there”
new = []
for letter in string:
  new.insert(-1, letter)
reversed = “”.join(new)
print(reversed)
# will output the reversed