Single Choice Not Set

QWhat will be the data type of x after the following statement?
x = {'lang' :'Python', 'version' : '3'}

ID: #3470 Python Data Types MCQ 746 views
Question Info
#3470Q ID
Not SetDifficulty
Python Data Types MCQTopic

Choose the Best Option

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

  • A List
  • B Set
  • C Dictionary
  • D Tuple
Correct Answer

Explanation

  • Dictionaries are used to store data values in key: value pairs.
  • A dictionary is a collection which is ordered, changeable and do not allow duplicates.
  • To determine how many items a dictionary has, use the len() function.

Share This Question

Challenge a friend or share with your study group.