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 development immediately followed the texan victory at the Battle of san jacinto in 1836
The volume of a gas is ______. equal to the volume of its container not related to the volume of its container dependent on the number of particles dependent on
Concerns of the anti federalist about the bill of rights
I want to do my homework math
Emma pays $108 every six weeks for tennis lessons. What is the price per year for tennis lessons?
What is the equation of the graphed line? i need help ASAP!!!!!!
Jermaine’s brother, jalen, sells wooden flower boxes. his profit is represented by the functionp(x) = 105x – 335, where p(x) represents the profit made after x
How many years passed between the first parade and the first snowstorm on parade day
Which of the following statements about federal student loans is TRUE?
I need help with this question 2 -3/4K=1/8k+9