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 do I do to figure out this problem:3x+8=26+x
What's the word for looking down on others; proud and scornful
Choose the more precise measurement in the pair.  A .) 6.7 mi or  B.) 6 mi
what is glossities and deficiency
What's the term for: unwilling to bend; unyielding
why dog pants during summer use the cocept of evaporation
what do I do to figure out this problem:3x+8=26+x
If 2/5 of a number is added to 1/3 of the same number ,the sum is 22. What is the number?
A solution of hydrogen peroxide, H2O2, is titrated with potassium permanganate, KMnO4, according to the following equation: 5H2O2 + 2KMnO4 + 3H2SO4 = 5O2 + 2MnS
Your friend is asked to differentiate between evaporation and boiling.what questions could you ask to make him to know the difference between evaporation and bo