Single Choice Not Set

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

ID: #3484 Python Dictionary MCQ 358 views
Question Info
#3484Q ID
Not SetDifficulty
Python Dictionary MCQTopic

Choose the Best Option

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

  • A dict_values([4, 8, 16, 32])
  • B dict_values{4, 8, 16, 32}
  • C dict_values(4, 8, 16, 32)
  • D dict_values[4, 8, 16, 32]
Correct Answer

Explanation

dict_values([4, 8, 16, 32])

Share This Question

Challenge a friend or share with your study group.