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's a Protective tariff?
What is English Literature??
When were fireworks first used in an official Fourth of July celebration?
Who wrote the sonnet, “The New Colossus,” which is engraved on the pedestal of the Statue of Liberty?
The point where the two axes intersect (0,0).
The heads of which presidents are carved into Mount Rushmore?
The 555-foot-tall Washington Monument in Washington, D.C., is an example of which of the following types of structures? a. pyramid b. geodesic dome c. obeli
What was manorial system
What do tire treads, rubber mats, automobile breaks, and tennis shoes have in common. -They reduce friction -they are lubricants -they increase friction -the
This US national park covers 270 square miles, and 95% of it is underwater. Divers and snorkelers explore its shipwrecks and a bright coral reef, home to reef