Created
July 10, 2020 10:23
-
-
Save KatUser/a5c60f5c80e4b71318d128713f73773a to your computer and use it in GitHub Desktop.
Gist to try Gist to try!
This file contains hidden or 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
import random | |
answers = ["Бесспорно", "Мне кажется - да", "Пока неясно, попробуй снова", "Даже не думай", | |
"Предрешено", "Вероятнее всего", "Спроси позже", "Мой ответ - нет", | |
"Никаких сомнений", "Хорошие перспективы", "Лучше не рассказывать", "По моим данным - нет", | |
"Можешь быть уверен в этом", "Да", "Сконцентрируйся и спроси опять", "Весьма сомнительно"] | |
print('Привет, Мир, я магический шар, и я знаю ответ на любой твой вопрос.' ) | |
print('Как зовут тебя?') | |
n = input() | |
print('Бонжур, ' + n + ' !') | |
while True: | |
print('Задавай свой вопрос! Чтобы закончить сеанс, введите СТОП') | |
question = input() | |
if question.lower() == 'стоп': | |
print('Очень жаль. Гудбай!') | |
break | |
else: | |
def choice(answers): | |
print( 'И вот мой ответ: ', random.choice(answers)) | |
choice(answers) | |
while True: | |
print('Будем продолжать? Да или нет?') | |
yesno = input() | |
if yesno.lower() == 'нет': | |
break | |
elif yesno.lower() == 'да': | |
break | |
else: | |
continue | |
if yesno.lower() == 'нет': | |
print('Досвидули! Возвращайся если возникнут вопросы!') | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment