Q. 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)


Answer :-


(a) It will give an error. ( Because we can not assign any variable in the Print statement. )

(b) 17

(c) 4.2 hello 4 world 7.5

4 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post