odalisaldaba03 odalisaldaba03
  • 24-09-2020
  • Computers and Technology
contestada

Assume the user types in 7 and 10. What is output by the following?
num1 = input ("Enter a number: ")
num2 = input ("Enter a number: ")
print (numi + num2)

Respuesta :

tonb
tonb tonb
  • 24-09-2020

Answer:

Enter a number: 7

Enter a number: 10

Traceback (most recent call last):

 File "main.py", line 3, in <module>

   print (numi + num2)

NameError: name 'numi' is not defined

Explanation:

The typo in the print statement causes a run-time error, where obviously num1+num2 was expected, and an output of 17.

Answer Link

Otras preguntas

What is the simplified form of the seventh root of x times the seventh root of x times the seventh root of x times the seventh root of x ? (1 point) 4 times the
Please answer soon. (35 Points)
Samsul's height is 160 cm, Toni's height is 180 cm, Tamara's height is 180 cm, Saiful's height is 190 cm. 1) Samsul's height is _______ in the class.2) Saiful's
#16 i Find the surface area of the triangular prism. 17 m 17 m 15 m 10 m 16 m The surface area is square meters.
What is the area of this figure? 6 yd 6 yd 2 yd 14 yd 8 yd 4 yd square yards
divide £70 in the ratio 4:3
Complete the table. Will choose brainliest.
Is this statement true or false? Two actors who carry on a conversation during filming are engaged in a monologue. true false
Want to help me out here? (Please answer all three)
How did the Second Great Awakening influence Americans? a.) It encouraged a spirit of generosity by all Americans toward new immigrants. b.) It inspired a spiri