What are collections in Python?

Collections in Python are used as containers to store data. We can say a collection is a data structure which can store data of various data types. We can access the data in the containers and manipulate in the program as per our requirement. Some of the collections in Python are:

  • Tuple
  • List
  • Dictionary
  • Set

Post a Comment

0 Comments