Project #1 - Python Magic 8 Ball: Complete Python Programming Masterclass Beginner To Advanced
Project #1 - Python Magic 8 Ball: Complete Python Programming Masterclass Beginner To Advanced
Project #1 - Python Magic 8 Ball: Complete Python Programming Masterclass Beginner To Advanced
The project will prompt the user to type a question. The code will then randomize a response and return
(print) the response back to the user, based on 8 pre-defined response.
Step 1
Requirements
• When a user runs the project, they should receive a prompt (printed message), asking them to
ask the magic 8 ball a question.
• The user will then type in a question and press the enter key.
• Logic, built in the code, will then return a random response back to the user.
o Valid random response will include:
▪ “IT IS CERTAIN”
▪ “YOU MAY RELY ON IT”
▪ “AS I SEE IT, YES”
▪ “OUTLOOK LOOKS GOOD”
▪ “MOST LIKELY”
▪ IT IS DECIDELY SO”
▪ “WITHOUT A DOUBT”
▪ “YES, DEFINETLY”
o You can decide how to store the valid responses and how to randomly return on of the
responses.
• The program should continue to run in a loop, returning a random response for each question
they user types.
• If the user doesn’t enter a question and the presses the enter key, then the application should
quit.
************************** CODE SPOILER ************************
***************************************************************
***************************************************************
***************************************************************
***************************************************************
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: