Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. f = open('test.txt', 'a+')
  2. yourResult = [line.split(',') for line in f.readlines()]
  3. for answer in yourResult:
  4. print (yourResult[answer])
  5.  
  6. a = raw_input('What Was That')
  7. Format = (answer + ' : ' + a + ', ')
  8. f.write(Format)
  9. print (Format)
  10. File = open('test.txt', 'r')
  11.  
  12. for answer in range(len(yourResult)):
  13. print(yourResult[answer])
  14.  
  15. for answer in yourResult:
  16. print(answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement