Question: Respond to the following: 1. What is the difference between a definite loop and an indefinite loop? 2. How does python determine which lines belong

 Respond to the following: 1. What is the difference between adefinite loop and an indefinite loop? 2. How does python determine whichlines "belong" to a loop? 3. In regard to Problem 2 of

Respond to the following: 1. What is the difference between a definite loop and an indefinite loop? 2. How does python determine which lines "belong" to a loop? 3. In regard to Problem 2 of Fix the Loops, what's the difference in making the condition of the while loop vs 4. In regard to Problem 3 of Fixing the Loops, what would happen if the random generator was def problem3(): "" "This loop should flip as long as the user types 'flip'. The code will then print the total number of heads and tails flipped."" " print(" PR0BLEM 3") heads =0 tails =0 repeat = "flip" while repeat == "flip": print() coin = random. randrange(2) if coin == 0 print("Heads") heads +=1 else: print("Tails") tails +=1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!