Reversing words in a sentence without library functions
Anonymous
#!/bin/python def reverse(string): string1 = string[::-1] return string1 myString = input("Type in the word that you want to reverse: ") print("Reversed string: ", end="") print(reverse(myString))
Check out your Company Bowl for anonymous work chats.