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

How do you think plant cells differ from animal cells? (Hint: What can plants do that animals cannot?) Gizmo
Find the slope of the line that passes through the given points. (-1, 4) and (-3, 8)
What is the value of x in the equation x + 10 = 13? (4 points) a.−3 b.3 c.13 d.23
What is 2n + -3 + 7 + 9
Two lines, C and D. are represented by the equations given below Line C: y = x + 14 Line D: y = 3x + 2 Which of the following shows the solution to the system o
Please list and explain the 5 elements to an arrest. I
The chemical symbol for the element calcium is Ca. What would be the symbol representing calcium atoms that have lost two electrons ? Ca- Cat + Ca-2 Ca+2 Mark t
Peter Salem and other African Americans served heroically during the American revolution what values did they share with the patriots
What research will help you prepare you before you apply for a job
(-3)^0 this is expodential equations