Examveda

What will be the output of the following Python code snippet?
X=”hi”
print(“05d”%X)

A. 00000hi

B. 000hi

C. hi000

D. error

Answer: Option D


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators