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

Show work and explain with formulas.26. Find the sum of the first 6 terms of a geometric series: 80 + (-20) + 5 + ...27. Find the 4 geometric means between 1/25
The perimeter of a triangle is 52 feet. One side of the triangle is 6 feet longer than the second side. The third side is 1 foot longer than the second side. Fi
What single transformation was applied to quadrilateral A to get quadrilateral b
What are the zeros of the quadratic function f(x)=2x^2+8x-3
Conflicts over religious differences and oil supplies in the Middle East affect American foreign policy today. had been resolved by the end of the 1980s. no lon
Help me plz it’s math
Why is gross profit more important than net profit
Maria bought and notebooks that cost $0.95 each and pee pants that cause 0.50 each . a 7.5% sales tax will be applied to the total cost.
Calculate the ph at 25°c of a 0.32 m solution of a weak acid that has ka = 9.2 × 10−6.
I NEED SOME HELP!!!​