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

a swimming pool has a perimeter of 72 ft The short sides measure 16 ft What is the length of the longer sides of the pool
I need help with this one (show work)
what is the simplified form of the fraction below 8/48
can anyone help answer 7-11 I can graph it myself just help on the first part​
In a morning walk, three persons step off together. Their steps measure 80 cm, 85 cm and 90 cm
which nuber is equivalent to [tex] \frac{ {3}^{4} }{ {3}^{2} } [/tex]​
You suspect that a serious developmental disorder is due to a chromosome abnormality and prepare a karyotype from an affected individual. In analyzing the kary
Which of the following is an example of exposition? Anne Frank receives a diary from her father. Mr. Van Daan and Mr. Frank were once business associates. The S
Is 1,000 ft or 300 yards bigger
liquids generally cannot be compressed as much as gases,making liquids ideal in hydraulic systems true or false ​