CBSE Class 12 Computer Science Question 52 of 120

Review of Python Basics — Question 4

Back to all questions
4
Question

Question 4

Write Python statement for the following in interactive mode:

  1. To display sum of 3, 8.0, 6*12
  2. To print sum of 16, 5.0, 44.0
Answer

1.

>>> 3 + 8.0 + 6 * 12

2.

>>> print(16 + 5.0 + 44.0)