adplus-dvertising
frame-decoration

Question

What is the output of this expression if X= -122?
print("-%06d"%x)

a.

-000122

b.

000122

c.

–00122

d.

-00122

Answer: (c).–00122

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 this expression if X= -122?