Single Choice Not Set

QWhat will be the data type of x after the following statement?
x = {2015, 2016, 2017, 2018}

ID: #3471 Python Data Types MCQ 473 views
Question Info
#3471Q 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

  • Sets are used to store multiple items in a single variable.
  • Set is data types in Python used to store collections of data.
  • A set is a collection which is unordered, unchangeable*, unindexed and uplicates not allowed.
  • * Note: Set items are unchangeable, but you can remove items and add new items.

Share This Question

Challenge a friend or share with your study group.