Skip to content

Instantly share code, notes, and snippets.

@Xotabu4
Created February 14, 2016 09:42
Show Gist options
  • Select an option

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

Select an option

Save Xotabu4/bd1f23bad0e259efec07 to your computer and use it in GitHub Desktop.
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(':')
result.reverse()
for word in result:
print(word)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment