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

solve for x, if. 3(x-8)-5=9(x+2)+1 the answer is 7.166 but i don't know how they got it problem: 3(x-8)-5=9(x+2)+1 Answer: 7.166
How do geographers determine the locations of places?
Why does photosynthesis not occur in animal cells?
The fish, dog, and bird are alike in many ways. One way is that they all have — A legs B hair C lungs D backbones
Leslie has two cups containing different-colored marbles . The first cup contains 7 pink marbles and 3 blue marbles . The second cup contains 3 black marbles ,
The Commonwealth of Nations primarily consists of former..
Black bears have thick fur that traps air. How does this air insulate the bear in winter?
A girl found the skull of an animal. She did not know what the animal was, but she was sure that it preyed on other animals for its food. Which clue led to her
The sides of a rectangle measure 2 cm and 4 cm. How many lines of symmetry does the rectangle have?
explain the idea known as "nationalism" and how it played a role in the weakining of the austrian and russian empires