Examveda

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

A. -000122

B. 000122

C. -122

D. -00122

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators