Q. What is the output of print(‘A’, ‘B’, sep=’-‘, end=’!’) print(‘C’)?

A
A-B!C
B
A-B-C
C
A-B! C
D
Error
Solution:

sep=’-‘ and end=’!’ produce ‘A-B!’, followed by ‘C’ on the same line.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!