CBSE Class 11 Computer Science
Question 64 of 80
Getting Started with Python — Question 29
Back to all questions(a) print(n=17) — It raises an error because the syntax print(n=17) is incorrect. In this context, n=17 is trying to use an argument name assignment within the print() function, which is not valid.
(b) print(8 + 9) — 17
(c) print(4.2, "hello", 6 - 2, "world", 15/2.0) — 4.2 hello 4 world 7.5
(d) print("123abc", sep = '-') — 123abc
(e) print("XXX", end ='!') — XXX!