Question: Debug the following Python code. 1. Explain the problem (1 point per error) 2. Write the correct, working code (1 point per error) This code
Debug the following Python code. 1. Explain the problem (1 point per error) 2. Write the correct, working code (1 point per error) This code is supposed to keep asking the user to enter a number until that number times 3 is greater than 30, then it stops asking. There is one syntax error and one logic error in the following code: finished = false while finished != True: value = int(input("Enter a number")) value = value * 3 if value > 30: print("The value is ", value)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
