Ask Question

What would you expect as the result of the code print (1 + 4) ?

A.

"1 + 4"

B.

print (1 + 4)

C.

five

D.

5

+1
Answers (1)
  1. 11 March, 11:44
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What would you expect as the result of the code print (1 + 4) ? A. "1 + 4" B. print (1 + 4) C. five D. 5 ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers