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

Update magic 8 ball with optional questions

Open dawable opened this issue 4 years ago • 2 comments

dawable avatar Aug 11 '21 04:08 dawable

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 11 '21 04:08 CLAassistant

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...")

evvrit avatar Nov 28 '21 16:11 evvrit