Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("im gigi your bot, getting on the second level practicing")
- print("This is a reverse_string function. How can I help you ?")
- msg=input("What is your string?>")
- #first=""
- def reverse_function(msg):
- first=msg[-1]
- L=len(msg)
- print(L)
- for i in range(L-1):
- first=first+ msg[L-2-i]
- #print(first)
- return first
- reverse=reverse_function(msg)
- print(reverse)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement