learn-python icon indicating copy to clipboard operation
learn-python copied to clipboard

Magic 8-Ball: OPTIONAL+ Challenges

Open juicyfroot opened this issue 4 years ago • 2 comments

Magic 8-Ball project from 'Python: Control Flow' lesson, with the following embellishments:

  • up to 20 answers (which is the standard)
  • when there is no name provided
  • when there is no question provided
  • when there is neither a name NOR a question provided

Will update when I remember how to code for console input (so people can actually type in their own names and/or questions to the Magic 8-Ball).

juicyfroot avatar Jan 12 '22 13:01 juicyfroot

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jan 12 '22 13:01 CLAassistant

Im slightly stuck on the optional part of this project, specifically point 14 'What if the question string is empty?' even though I enter

elif question == "": print("You didn't ask a question.")

it still churns out an answer. Is it meant to do this? I thought the whole point was because you don't ask it a question the code is not meant to go further and give you an answer.

Sorry i'm new to this and therefore my technical language is subpar.

Thanks in advance for your help!

PreetCaur avatar Feb 22 '22 15:02 PreetCaur