Create a new python file call Magic8Ball.py:

  1. Create a forever loop and inside the loop do the following:
    1. Ask user “Enter yes or no question.” and take user input and save/set user input into a variable called “userQuestion”.
    2. If user input is “quit”, print “Bye bye” and break from the While Loop.
    3. Generate random number between 1 to 8
      1. to generate random number between 1 to 8 do the following “random.randint(1,8)” and save/set random number into variable called “randomNumber”.
    4. Inside the while loop print to the screen according to “randomNumber”
      1. If randomNumber is equal to 1, print “It is certain.”
      2. If randomNumber is equal to 2, print “Most likely.”
      3. If randomNumber is equal to 3, print “Signs point to yes.”
      4. If randomNumber is equal to 4, print “I don’t so.”
      5. If randomNumber is equal to 5, print “Ask again later.”
      6. If randomNumber is equal to 6, print “Concentrate and ask again.”
      7. If randomNumber is equal to 7, print “Outlook not so good.”
      8. If randomNumber is equal to 8, print “My reply is no.”
    5. After printing the answer, go back to Step 1 (Ask user “Enter yes or no question”) until user input “quit”.