Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. n = 5
  2. while n > 0:
  3. print "tell me word", n
  4. word(n) = raw_input()
  5. n = n - 1
  6. print
  7. r = 1
  8. while r < 6:
  9. print word(r)
  10. r = r + 1
  11.  
  12. words = []
  13.  
  14. n = 5
  15. words = []
  16. while n > 0:
  17. words.append(raw_input('Tell me a word: '))
  18. n -= 1
  19.  
  20. for n in range(5):
  21. words.append(raw_input('Tell me a word: '))
  22.  
  23. words = [raw_input('Tell me a word: ') for n in range(5)]
  24.  
  25. print list(reversed(words))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement