Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- questions = [1,2,3,4,5,6,7,8,9,"B","M"]
- import random
- wizards = 0
- interrogators = 0
- while questions != []:
- quest = random.choice(questions)
- print(quest)
- result = input("Введите результат: ")
- if result == "Правильно":
- wizards = wizards+1
- elif result == "Неправильно":
- interrogators = interrogators+1
- print(wizards)
- print(interrogators)
- questions.remove(quest)
- if wizards == 6:
- print("Wizards win!")
- break
- if interrogators == 6:
- print("Interrogators win!")
- break
- print("Спасибо!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement