Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import shuffle
- stdin = open('leccion' + input() + '.txt')
- repeat = stdin.read().split('\n')
- repeat.pop()
- for i in range(len(repeat)):
- repeat[i] = repeat[i].split()
- new_repeat = []
- while repeat:
- shuffle(repeat)
- for elem in repeat:
- print(elem[1])
- if input() != elem[0]:
- new_repeat.append(elem)
- print('WRONG!!!\nThe right answer is ', elem[0])
- repeat = new_repeat[:]
- new_repeat = []
- print('Well done!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement