Discussion Forum | Board Infinity

What are list and dictionary in Python

List and Dictionary in Python

A list is a collection which is ordered and changeable. In Python lists are written with square brackets.
ref: https://www.w3schools.com/python/python_lists.asp
Dictionary: A dictionary is a collection which is unordered, changeable and indexed. In Python dictionaries are written with curly brackets, and they have keys and values.

1 Like