Data Structures in Python: An Interview Refresher

Data Structures in Python: An Interview Refresher
Python Refresher — Data Structures.This article covers some of the fundamental data structures in python namely lists , dict , tuples and Strings.

This article covers some of the fundamental data structures in python namely lists , dict , tuples and Strings.

Lists :

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.

This is image title
Pic Credit : Programiz.com

Dictionary :

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 .

This is image title

Pic Credit : developers.google.com

Tuple :

A tuple is a ordered collection and are immutable unlike lists. Tuples have comma-seperated values and are written within square brackets .

Strings :

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.

This is image title

Suggest:

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

Python Tutorial for Beginners [Full Course] 2019

Introduction to Functional Programming in Python