
In this activity, you will be write a program which will wait for your confirmation before pretending to check out a shopping cart. Don’t worry no money will be charged on your credit card!
In the editor below, complete the code so that the program displays the amount in your shopping cart, then waits for the user to confirm by pressing the [Enter] key, and then finally displays that their credit card was successfully charged.
Below is an interactive demo of how the program should run. Play around with the program to see how your program should also behave.
Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:
You must be logged in to post a comment.