Question: Q3: Find the errors in the following code and correct them (2 errors): ( 2 marks) 1. try 2. x= float('abc123') 3. print('The conversion is
Q3: Find the errors in the following code and correct them (2 errors): ( 2 marks) 1. try 2. x= float('abc123') 3. print('The conversion is complete.') 4. finally: 5. print('finally clause.') 6. except ValueError: 7. print('This code caused a ValueError.') Error 1 Line no. : The line after correction
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
