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 are the values of x in the equation x(x-6)=4(x+6)
The height y of a ball (in feet) is given by the function and x is the horizontal distance traveled by the ball. a)How high is the ball when it leaves the chil
two southeast asian countries that gained independence in the 1950s are?
How did industrialization affect Manchester’s natural environment?
Why was writing a key invention for the Sumerians?
The instruments of international bargaining: using military resources
Bernice wants to know which ice cream parlor is the most popular among students at her school. Which samples are random for this population and which are not? f
Which are steps taken by the first emperor of a united China to unify the country? Choose all answers that are correct. A. taught Chinese history and government
What were Metternich’s three goals at the Congress of Vienna?
which of the following statements if true of the gulf of Tonkin affair