Vidyalelo
Python · Q81

Formatting and Decorators

Programming · Python · question 81

Q81

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

A.
-000122
B.
000122
C.
-122
Answer
D.
-00122

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board