Coding Task: 05.02 Dance Off

You are chosen to perform a very cool but tricky dance move for your class!

Based on all your practice, you think you have a 75% chance of pulling it off successfully!

Your Task

Using the flowchart below, complete the program in the editor below.

Python Reference Sheet

Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:

Requirements

  • The program should run without any errors.
  • The program should generate a new random number every time the user presses [ENTER], and quit if the number is less than or equal to 75.

Example

Below is an example of how the program should run:

There is a 75% chance you can pull off this cool dance move!
Press [ENTER] to bust a move!
Success score = 86
You stumble but keep on trying!

There is a 75% chance you can pull off this cool dance move!
Press [ENTER] to bust a move!
Success score = 98
You stumble but keep on trying!

There is a 75% chance you can pull off this cool dance move!
Press [ENTER] to bust a move!
Success score = 23
You did the move and the crowd goes wild!

Bye now!

Scroll to Top