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

How do you think the formation of new stars is related to supernovas and planetary nebulae?
What is the difference between REM behavior disorder and somnambulism (sleep walking)?
Why was Alexander the great was so successful as a general and ruler?
What does i mean to alter a landscape
Solve the equation with the replacement set {–43, –7, 7, 43} Equation = |25 – x| = 18 Choice of answers A. –7, 7 B. 7, 43 C. 7 D. 43
How can I put (4,1) and a slope of -1 into an equation?
Only humans can use what is defined as language. True False
Julius bought 3 games on sale. the original price of each game was "d" dollars. the expression 3(d - 0.2d) shows the total amount julius paid. which expression
What is m∠A ? Please see attachment (The Triangle Sum Theorem)
Are these correct or did I do them all wrong