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

Find the missing value. -4 = ___ -9
The probability that Tim will sink a foul shot is 70%. If Tim attempts 30 foul shots, what is the probability that he sinks exactly 21 shots?
Anna is writing a report about building a kite Which two magazine articles will best help Anna with her research 1. "Why wind matters" 2. "Making kites fly high
Solve ln(5x+18)=ln(12x+4)
3. How can the Preamble be used to evaluate how the federal government is doing its job?
A region with a 5 mile radius had a population density of about 3100 people per square mile. Find the number of people who live in the region to the nearest ten
3. How were the German Jewish people first exposed to the Nazis' anti-Jewish sentiment?(A) The Nazis forced Jewish people out of their places in German society.
Sin(x+20) - cos (2X+10)
HELP PLEASE I DONT GET IT
What is the formula for area of a circle