Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverse_string():
- string = input("Type in a string ")
- newstring = ""
- L = len(string)-1
- for i in range(L,-1,-1):
- newstring = newstring + string[i]
- return newstring
- reversestring=reverse_string()
- print (reversestring)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement