Created
February 14, 2016 09:59
-
-
Save Xotabu4/4534aaa4879245743232 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| print('Please enter word to add to list, program will stop on empty line entered') | |
| word = input(':') | |
| result = [] | |
| while word: | |
| result.append(word) | |
| word = input(':') | |
| for word in result: | |
| r_text = '' | |
| index = len(word) - 1 | |
| while index >= 0: | |
| r_text += word[index] #concatenating strings. | |
| index -= 1 | |
| print(r_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment