What Will Be The Output Of The Following Python Code Snippetp #548
What will be the output of the following Python code snippet?</p> <pre><code class="language-python"> d = {"john":40, "peter":45} print(d) </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.1.
What will be the output of the following Python code snippet?
d = {"john":40, "peter":45} print(d)
“john”, 40, “peter”, 45
{‘john’: 40, ‘peter’: 45}
40 and 45
d = (40:”john”, 45:”peter”)