Advertisement
Guest User

chgk.py

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. questions = [1,2,3,4,5,6,7,8,9,"B","M"]
  2. import random
  3. wizards = 0
  4. interrogators = 0
  5. while questions != []:
  6.     quest = random.choice(questions)
  7.     print(quest)
  8.     result = input("Введите результат: ")
  9.     if result == "Правильно":
  10.         wizards = wizards+1
  11.     elif result == "Неправильно":
  12.          interrogators = interrogators+1
  13.     print(wizards)
  14.     print(interrogators)
  15.     questions.remove(quest)
  16.     if wizards == 6:
  17.         print("Wizards win!")
  18.         break
  19.     if interrogators == 6:
  20.             print("Interrogators win!")
  21.             break
  22. print("Спасибо!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement