CBSE Class 11 Computer Science Question 61 of 80

Getting Started with Python — Question 26

Back to all questions
26
Question

Question 26

Write instructions to the Interactive mode for the following:

(a) To display sum of 3, 8.0, 6 * 12

(b) To print sum of 16, 5.0, 44.0

Answer

(a)

>>> 3 + 8.0 + 6 * 12

(b)

>>> print(16 + 5.0 + 44.0)