CBSE Class 12 Computer Science Question 64 of 120

Review of Python Basics — Question 16

Back to all questions
16
Question

Question 11

What are the various ways of creating 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.