Created
February 7, 2016 09:48
-
-
Save Xotabu4/6cd0b64f151b11ea1058 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('########################################') | |
| print('############### Welcome! ###############') | |
| print('########################################') | |
| word = input('Enter word that needs to be reduced one letter by one: ') | |
| counter = len(word) | |
| for letter in word: | |
| current_result = '' | |
| counter -= 1 | |
| for c in range(counter): | |
| current_result += word[c] | |
| print(current_result) | |
| print('############### DONE! ###############') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment