fork download
  1. import random
  2. words = {'hui': 'pizda', 'govno': 'mocha'}
  3.  
  4. while words:
  5. key = random.choice(list(words.keys()))
  6. val = words[key]
  7. check = input(f'vvedite {val}: ')
  8. if not check:
  9. break
  10. if check == key:
  11. print('molodec')
  12. del(words[key])
  13. else:
  14. print('net')
Runtime error #stdin #stdout #stderr 0.18s 23512KB
stdin
Standard input is empty
stdout
vvedite pizda: 
stderr
Traceback (most recent call last):
  File "./prog.py", line 7, in <module>
EOFError: EOF when reading a line