Examveda

What will be the output of the following two codes?
i. '{0}'.format(4.56)
ii. '{0}'.format([4.56,])

A. '4.56', '4.56,'

B. '4.56', '[4.56]'

C. 4.56, [4.56,]

D. None of the above

Answer: Option B


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators