Creating a Magic 8 Ball Program in Python

preview_player
Показать описание
This program teaches you how to create a very simply Magic 8 Ball in Python. This program gives a randomly chosen fortune for a question you ask.
Рекомендации по теме
Комментарии
Автор

Worked fantastic. Thank you so much for this wonderful video :)

Carsnow
Автор

import random
>>> messages = ["Try Again", "Outcome Looks Good", "Definitely Yes",
... "Outlook Not So Great", "Very Doubtful", "Maybe", "No", "Yes", ]
>>> keep_asking = "True"
>>> while keep_asking == "True":
... outcome_of_8ball_ = random.choice(messages)
File "<stdin>", line 2
outcome_of_8ball_ = random.choice(messages)
^
IndentationError: expected an indented block
>>>
???? plz help???? what have i done wrong??

philip
join shbcf.ru