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

Determine the next step for solving the quadratic equation by completing the square. 0 = –2x2 + 2x + 3
The line segments of a cube include edges, the diagonals of the faces, and the diagonals through the interior of the cube. Which is the longest? Which is the s
What did Jacob Riis's book How the Other Half Lives try to do?
How did Mussolini and hitler fight unemployment in their countries?
can I please get some help
The respiratory zone is the site of gas exchanges and includes any structure in which are found
What is the definition of alliteration? A.) the repetition of two or more words in a sentence or phrase; for example “at home in my townhome” B.) the repetition
why did American rebel against the british
A(n) ______ is someone who is not in the military.
PLZ HELP 3-4 100 POINTS