CBSE Class 9 Computer Applications Question 17 of 23

Introducing Python — Question 10

Back to all questions
10
Question

Question 8

Write instructions in interactive mode for the following :

(i) to display sum of 8, 9.0, 2 * 3

(ii) to print sum of 8, 9.0, 2 * 3

Answer

(i)

>>> 8 + 9.0 + 2 * 3
23.0

(ii)

>>> print(8 + 9.0 + 2 * 3)
23.0