surshot444
surshot444 surshot444
  • 16-02-2017
  • Computers and Technology
contestada

What would you expect as the result of the code print(1 + 4)?
A.
"1 + 4"
B.
print(1 + 4)
C.
five
D.
5

Respuesta :

jef1125
jef1125 jef1125
  • 17-02-2017
D, you're adding numbers and it will just print the result in integers not in string format.

You have 4 basic types of data in Python:

Integer -> non-decimal number i.e. 1,2,3,4,5...

Float -> decimal number
i.e. 0,128

Boolean -> true or false
(that is clear enough I think?)

String -> text as in a textbook i.e. You won the lottery.
Answer Link

Otras preguntas

the temperature is 31 degrees.the temperature will drop 15 degrees .what will the temperature be?
What powerful eastern african kingdom emerged in the 200s bc and attempted to spread christianity throughout africa?
What’s 3yrs and 4 months as a decimal?
Rural colleges are usually located in
The National Association for the Advancement of Colored People was founded as a direct response to
(05.07 MC) Read the fairy tale and answer the question in a complete sentence: Il était une fois une petite fille qui habitait dans un petit village. Elle port
{50 POINTS} please help! due tomorrow! D:
The worst drought in over 50 years has decimated crops of soy beans and corn in the united states. (source: new york times, august 10, 2012). because the produc
A quilt of a country What is the tone of piece ?how do you know
One risk of the government restricting citizens’ Second-Amendment right to bear arms might be which of the following selections? A. limiting or removing the abi