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

What is the systematic name for the compound Ni2(SO4)3
the mouse and keyboard aslo called
Write the equation of a line that passes through the points (-4, -5) and (2, 13). A) y = -4x - 21 B) y = -4x - 11 C) y = 3x + 7 D) y = 3x + 17
It is the obligation of researchers to review and comment on the research of other researchers. True or False.
why forest are named as lungs ?
is it anyone up here that can help me with this question please
simplify 5 square root of 11 end root minus 12 square root of 11 end root minus 2 square root of 11. negative 33 square root of 9 negative 11 square root of 9 n
Which of the following statements is true? (1 point) A) A cell’s phenotype is determined by its DNA, and its genotype is determined by its proteins. B) A cell’
Why was propaganda an important tool of totalitarian dictators?
It is recommended that you sit at least _____ inches away from the air bag.