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

Darron uses a family recipe to make hamburgers. If he plans on using 1 1/3 cups of bread crumbs, about how many pounds of hamburgers does Darron need to use to
394.6 divided by 9 using compatible numbers to estimate the quotient?
what country strictly controlled shipping and trade with the colonies and why
Why are the Rocky Mountains described as younger?
the coefficients in a balanced chemical equation represent
how do you say: I have a TV and computer in my bedroom in Spanish
Which of these is a characteristic of a civilization? (4 points) cities use of resources society of equals public transportation
Mangrove forests were traditionally viewed as _______. a. unproductive wastelands b. valuable fish habitats c. an erosion preventing habitat d. pollution filter
what are two things we should be careful about when using adverds
Supporters of the New Jersey Plan did what