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

please can you solve it for me I need it ​
836.45 write in words
is engineering the right choice for someone who wants to be a millionaire?
What are the possible rational zeros of f(x)=x^4+2x^3-3x^2-4x+18
Please help with the question in the picture!!!
During the late 1800s the Chinese immigration rate dramatically decreased because of new legislation decrease because of the war in china increased because
Lee surveyed students at school about whether they buy lunch or bring lunch from home. The data she gathered is shown in the two way table below Source of Stude
Mary Anne’s parakeet weighs 240g. Her cat weighs 3.1 kg. What is the difference, in grams, of the weights of her pets?
an object travels along a horizontal straight path at a constant rate. the object travels 1/20 of the length of the path in 3/4 seconds. at that rate, how many
How should you make a difficult purchasing decision? Search online for advertisements Gather Information about the product and use the PACED decision-making pro