Created
March 24, 2018 19:21
-
-
Save simplesasha/6f0e7636ad89b03222bffeff59c73bf9 to your computer and use it in GitHub Desktop.
Игра-викторина
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
quiz = {'Какой Марс по счету в солнечной системе? \n': ['4', 'четвертый'], | |
'Луна — это... \n': ['естественный спутник Земли', 'спутник Земли', 'спутник земли', 'спутник'], | |
'Какого цвета небо? \n': ['Синее', 'синеее', 'голубое', 'Голубое', 'серое']} | |
for key, val in quiz.items(): | |
if input(key) in val: | |
print('Правильный ответ') | |
continue | |
else: | |
print('Неправильный ответ, правильный: ', val) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment