Examveda

What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)

A. 56.00

B. 56.24

C. 56.23

D. 0056.236

Answer: Option B


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators