Python Lists Tutorial | Datasets in Python

Опубликовано: 26 Август 2024
на канале: The Code City
574
12

Python lists are similar to arrays in other languages. Python Lists don't always have to be homogeneous, so that make python lists a very powerful tool for data storage in python. A single list can contain multiple DataTypes including but not limited to Strings, Integers and even non primitive objects. Lists are also extremely useful for the implementation of stacks and queues. Unlike some other data structures in python that we will cover later, lists are mutable, and hence, they can be modified even after their creation.
Python lists are ordered and have a fixed count. The indexing of elements in a list are according to a definite sequence and the indexing start with 0 being the first element. Each element in the list has a fixed place in the list, this allows us to create duplicetes of elements in the list, with each element having its own unique place.

Tip - Lists in python are a useful tool for preserving a sequence of data, later iterating over it and taking necessary steps. Lists can contain mutable elements unlike sets.

In this python lists tutorial, we will go over the following aspect:
1. List Creation
2. List Item Adding
3. List Item Retrieving
4. List Item Deletion
5. List Slicing
If you have any issue, and I'll try to answer your question as far as possible.
SECOND VIDEO OUT NOW :