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