adplus-dvertising
frame-decoration

Question

What is the output of the following expression if x=456?
print("%-06d"%x)

a.

000456

b.

456000

c.

456

d.

error

Posted under Python

Answer: (c).456

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 of the following expression if x=456?

Similar Questions

Discover Related MCQs