What Will Be The Output Of The Following Python Codep Pre #117
What will be the output of the following Python code?</p> <pre><code class="language-python">'{a}, {0}, {abc}'.format(10, a=2.5, abc=[1, 2])</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 Formatting - Quiz No.3.
What will be the output of the following Python code?
'{a}, {0}, {abc}'.format(10, a=2.5, abc=[1, 2])
Error
‘2.5, 10, [1, 2]’
2.5, 10, 1, 2
’10, 2.5, [1, 2]’