Who wants to be a millionaire? I do!
Draw a flowchart for a program that asks the user a question, and if they answer correctly, print back Correct!
. Then in the editor below, write the program in Python and test it to make sure that it works!
Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:
Have a nice day!
. If the user types the correct answer, then the program should print Correct!
in green text before it prints Have a nice day!
.if
statements in Python! Everything “inside” the if
statement has to line up, and don’t forget the colon (:
) at the end of the if
statement!Below is an example of how the program should run:
What is the capital city of Iceland? Canberra
Have a nice day!
What is the capital city of Iceland? Reykjavik
Correct!
Have a nice day!
Need some help? Click here to reveal a video walkthrough for this task!