Q. What is the output of print(‘Hello’, end=’-‘) print(‘World’)?

A
HelloWorld
B
Hello-World
C
Hello World
D
Error
Solution:

end=’-‘ sets the end character, outputting ‘Hello-World’ on the same line.

Entri Contact Image

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