Post

@PythonPr Answer: B) <class 'list'>
[1, 2, 3] is a list, so type() returns <class 'list'>
For beginners:
› [1, 2, 3] = list (square brackets)
› (1, 2, 3) = tuple (parentheses)
› {1, 2, 3} = set (curly braces)
› {1: 'a'} = dict (key: value pairs)
English

@PythonPr Answer: B — <class 'list'>
Square brackets [] create a list in Python.
Tuples use (), sets use {}, and dicts use {key: value}.
English

@PythonPr B ✅. The data is a list. It is one of the data types in python, and one of the four collections in python.
English

@PythonPr [1, 2, 3] is a list in Python
type() returns the data type of the object
Python displays list types as <class 'list'>
English

@PythonPr The correct option is B
List uses square brackets []
Tuple uses normal bracket i.e parenthesis ()
Set uses curly brackets {}
Dictionary also uses curly brackets, but it's different from set because it has keys, and values.
E.g my_dict = {'color' : 'blue'}
English

@PythonPr <class 'list'>
written in square brackets as always creates list. type() tells data type of object.
English



























