Examveda

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

A. 000456

B. 456000

C. 456

D. error

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators