adplus-dvertising
frame-decoration

Question

What is the output when following code is executed ?
>>>print("D", end = ' ')
>>>print("C", end = ' ')
>>>print("B", end = ' ')
>>>print("A", end = ' ')

a.

DCBA

b.

A, B, C, D

c.

D C B A

d.

D, C, B, A will be displayed on four lines

Posted under Python

Answer: (d).D, C, B, A will be displayed on four lines

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output when following code is executed ?