learn-python
learn-python copied to clipboard
Update magic 8 ball with optional questions
I'm not sure if this is the right place to put this, but I have alternate code for the optional magic 8-ball q's (that works)
if not question == "" and not name == "": print(name + " asks: " + question + "\n") print("Magic 8-Ball's answer: \n" + answer) elif not question == "" and name == "": print("Question: " + question + "\n") print("Magic 8-Ball's answer: \n" + answer) else: print("I'm waiting...")