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 main purpose of a well-written description? to paint a picture in the reader's mind to provide a rough sketch to persuade the audience none of these
Solve each system of inequalities x^2+y^2 <= 9 y>-x^2+2
CAN Someone please help with this it’s trig work?
me podrian ayudar con esto por favor ​
Loneliness, lower grades, aggressive actions, and anxiety using technology are all health consequences of experiencing
Task #6 I need you to Write up a 3 Column Cash Book of the transaction that was done with our company (November 2021) November 1 Balance brought forward : Cash
Which demonstrates how genitis variation may result from a change in the environment where an animal tives?A. A salmon swims faster as it anters colder waters.B
The graph below shows the number of hours a group of children studied for a test and the score on a math exam. -90- -80- -70 -60- If Sophia studies for 5% hours
1. Allowing women panchayats inthe villages of Chhatisgarh.2.​
Which of the following is considered an improvement?A) TenantB) LeaseC) Subdivision platD) Sewer