Skip to content

Instantly share code, notes, and snippets.

@Xotabu4
Created February 7, 2016 09:48
Show Gist options
  • Select an option

  • Save Xotabu4/6cd0b64f151b11ea1058 to your computer and use it in GitHub Desktop.

Select an option

Save Xotabu4/6cd0b64f151b11ea1058 to your computer and use it in GitHub Desktop.
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