Examveda

What will be the output of the following Python code?
'%.2f%s' % (1.2345, 99)

A. '1.2345', '99'

B. '1.2399'

C. '1.234599'

D. 1.23, 99

Answer: Option B


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators