CBSE Class 11 Informatics Practices Question 46 of 62

Getting Started with Python — Question 14

Back to all questions
14
Question

Question 14

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)