adrianmessirodriguez
adrianmessirodriguez adrianmessirodriguez
  • 01-10-2020
  • Computers and Technology
contestada

What is the result when you run the following program?
print(2 + 7)
print("3+1")
9
Ost
3+1
an error statement
O
2 +7
4
9
O A

Respuesta :

asarwar
asarwar asarwar
  • 01-10-2020

Answer:

The answer to this question is given below in the explanation section.

Explanation:

If you run the following program,

print(2 + 7)

print("3+1")

then, you can get the following result respectively against each print statement.

9

3+1

because when you print 2+7 without quotation, it will add the integer digit and print the result of adding 2 and 7.

And, when you run ("3+1") in the double quotation, the program will treat it as a string because of the enclosed double quotation (" ");

Answer Link

Otras preguntas

Donnez, au moins, 3 raisons pour le conflit entre les parents et les enfants. Argumentez votre choix
Need help ASAP give brianiset
What is an equation of the line that passes through the point (-2, 2) and is parallel to the line 2x + y = 1?​
The surface area of Earth is approximately 5.1 x 108 km2. The surface area of Jupiter is approximately 6.2 x 1010 km2. Approximately how many times larger is Ju
Helppppppppp for brain list plz 5 and 6
Write a reflection about the pandemic that we are facing. Use transition signals.
Based on the reading, what can you infer about aspirin's ester group? It provides aspirin's pain-killing ability. It makes the compound more digestible. It redu
The discount of a hat is 18 Dollars, what is the regular price 20°/• discount​
What groups of people would almost always be processed through Angel Island?
Help meeee anyyyonee