Vidyalelo
Python · Q15

Formatting and Decorators

Programming · Python · question 15

Q15

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]'
Answer
C.
4.56, [4.56,]
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board