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

Describe 3 ways to determine the slope of a line and the similarities and differences between the methods.
Who holds the the copyright of the hiding place
Help I gonna die help me please
Why did Marquis de Talleyrand assume he had leverage to demand bribe from the American diplomats seeking negotiations?
What is the official name of the living laboratory for sustainable development practices of forests? Forests Forever Logging Unlimited International Model Fores
What type of government did the national assembly want?
Andrew Jackson once said, "One man with courage makes a majority." Write a paragraph explaining what you think Jackson meant by this quote and how this idea inf
Find the difference of 6.6 and 4.58
What shape is 80,100,100,80 degree?
Lance is swimming at the country club swimming pool. The pool is 30 feet wide and 100 feet long. If Lance swims the diagonal length of the pool, how far will he