This article covers some of the fundamental data structures in python namely lists , dict , tuples and Strings.
Python List is a ordered collection and allows duplicate members. Lists are mutable, and hence, they can be altered even after their creation.Items in the list need not be of the same data type.
Pic Credit : Programiz.com
A dictionary is an unordered collection, changeable and indexed. Dictionaries have keys and values and are written with curly braces {}.Keys in the dictionary are unique .
Pic Credit : developers.google.com
A tuple is a ordered collection and are immutable unlike lists. Tuples have comma-seperated values and are written within square brackets .
Python Strings can be creted by using either single or double quotation marks. Character data type is a string wth a length of one.Strings can be accessed using square brackets.
☞ Python Tutorials for Beginners - Learn Python Online
☞ Learn Python in 12 Hours | Python Tutorial For Beginners
☞ Complete Python Tutorial for Beginners (2019)
☞ Python Programming Tutorial | Full Python Course for Beginners 2019