Informatics Practices

Record what happens when the following statements are executed:

(a) print (n = 17)

(b) print (8+9)

(c) print (4.2, "hello", 6-2, "world", 15/2.0)

Getting Started

2 Likes

Answer

(a) It raises TypeError as 'n' is an invalid keyword argument for print() function.

(b) 17

(c) 4.2 hello 4 world 7.5

Answered By

2 Likes


Related Questions