Page 1 of 1

What will be the output of the following two codes?

Posted: Wed Jul 13, 2022 7:44 pm
by answerhappygod
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) 4.56, [4.56,]