Examveda

What will be the output of the following Python code?
print('{0:.2}'.format(1/3))

A. 0.333333

B. 0.33

C. 0.333333:.2

D. Error

Answer: Option B


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python