Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save Xotabu4/4534aaa4879245743232 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(':')
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