CBSE Class 11 Computer Science Question 36 of 82

Lists in Python — Question 1

Back to all questions
1
Question

Question 1

What are the various ways to create a list?

Answer

The various ways of creating a list are :

  1. Using Square Brackets [].
  2. Using the list() constructor.
  3. Using list comprehensions.
  4. Appending Elements.
  5. Using the extend() method.
  6. Using slicing.