Single Choice Not Set

QWhat will be the output after the following statements?
x = {0:4, 1:8, 2:16, 3:32}
print(x.keys())

ID: #3483 Python Dictionary MCQ 412 views
Question Info
#3483Q ID
Not SetDifficulty
Python Dictionary MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A dict_keys([0, 1, 2, 3])
  • B dict_keys{0, 1, 2, 3}
  • C dict_keys(0, 1, 2, 3)
  • D dict_keys[0, 1, 2, 3]
Correct Answer

Explanation

dict_keys([0, 1, 2, 3])

Share This Question

Challenge a friend or share with your study group.