Article Outline
Python example 'stringReverse'. Given a string (keyboard input), it reverses the string.
stringReverse
Python beginners example: stringReverse
# String Reverse
# This program is funny
getString = str(input('Word to Reverse : '))
reverseString = getString[::-1] # [::-1] tells to step from end without difference
print(reverseString)
Useful links
- Learn Python: https://pythonbasics.org
- Download Python: https://python.org