Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open('test.txt', 'a+')
- yourResult = [line.split(',') for line in f.readlines()]
- for answer in yourResult:
- print (yourResult[answer])
- a = raw_input('What Was That')
- Format = (answer + ' : ' + a + ', ')
- f.write(Format)
- print (Format)
- File = open('test.txt', 'r')
- for answer in range(len(yourResult)):
- print(yourResult[answer])
- for answer in yourResult:
- print(answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement