Python a very good programming language to learn
Python lists are one of the most versatile data types that allow us to work with multiple elements at once. For example,In this tutorial, we'll learn everything about Python lists: creating lists, changing list elements, removing elements, and other list operations with the help of examplesIn Python, a list is created by placing elements inside square brackets [], separated by commas.# list of integers
Example:
my_list = [1, 2, 3]
A list can have any number of items and they may be of different types (integer, float, string, etc.).
# empty list
my_list = []
# list with mixed data types
my_list = [1, "Hello", 3.4]
A list can also have another list as an item. This is called a nested list.
We will continue on accessing the member in the list we created both by positive and negative index number on the next tutorial

0 Comments