What Will Be The Output Of The Following Two Codesp Pre #132
What will be the output of the following two codes?</p> <pre><code class="language-python">i. '{0}'.format(4.56) ii. '{0}'.format([4.56,])</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs109 Python.
It can also be found in
gs gs109 Formatting & Decorators in Python - Python Advanced Formatting - Quiz No.2.
What will be the output of the following two codes?
i. '{0}'.format(4.56) ii. '{0}'.format([4.56,])
‘4.56’, ‘4.56,’
‘4.56’, ‘[4.56]’
4.56, [4.56,]
4.56, 4.56,