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
Print(n=7)
ReplyDeleteIt will give error.
DeletePrint(n=17)it will give error .why??
ReplyDeleteBecause we can not assign any variable in Print statement.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )