Question PRG-PY-0002
EasyWhat is the output of this program?
print(type([1, 2, 3]))
- A.
<class 'tuple'>
- B.
<class 'set'>
- C.
Show answer and explanation
Answer: C
Square brackets create a list.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Python question
What is the output of this program?
print(type([1, 2, 3]))
<class 'tuple'>
<class 'set'>
Answer: C
Square brackets create a list.
<class 'list'>
<class 'dict'>