What Will Be The Output Of The Following Python Code Snippetp #284
What will be the output of the following Python code snippet?</p> <pre><code class="language-python">print('The sum of {0:b} and {1:x} is {2:o}'.format(2, 10, 12))</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Strings - Python Strings - Quiz No.8.
What will be the output of the following Python code snippet?
print('The sum of {0:b} and {1:x} is {2:o}'.format(2, 10, 12))
The sum of 2 and 10 is 12
The sum of 10 and a is 14
The sum of 10 and a is c
Error