What Will Be The Output Of The Following Python Codep Pre #568
What will be the output of the following Python code?</p> <pre><code class="language-python"> a={1:5,2:3,3:4} a.pop(3) print(a) </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 Dictionary - Python Dictionary - Quiz No.3.
What will be the output of the following Python code?
a={1:5,2:3,3:4} a.pop(3) print(a)
{1: 5}
{1: 5, 2: 3}
Error, syntax error for pop() method
{1: 5, 3: 4}