Question: num 1 = input ( What is the length of the first side? ) num 2 = input ( What is the

num1= input("What is the length of the first side? ")
num2= input ("What is the length of the second side? ")
num1= int (num1)
num2= int ( num2)
unknown = num1** num2
Which of the following statements are true? Examine the code carefully.
This code represents the calculation of the area of a rectangle.
Even if you removed lines 3 and 4, the code would run without error.
The code as written will cause an error if the user enters the input "A" for "What is the length of the first side?".
The value of num1 is "What is the length of the first side? ".
Answer
Incorrect:
What will happen on line 3 if the user enters "A" as the input?
Review how input() works. What happens when we use input()?
 num1= input("What is the length of the first side? ") num2=

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!