Lists are a collection of data or the same or different data types that can be stored in a systematic part of the memory.
A way of creating an empty list in Python is by equating an identifier to square brackets
To create a list
Items in the list can be accessed
This is done my specifying the nth item on the list, list numeration starts from zero
So you use print(list) to print the first item on the list then print(list) for the second item.
List.append(5)-the word append is to add more values to a list.
List.remove(2)- deletes the number 2 in the list.
Max(list)-in a list of integers finds the maximum number.
Min(list)-in a list of integers find the minimum number.
List.reverse()-reverses the list
List.sort-sorts the list.
Lists are very useful in programming as we will see in later lessons.
Thanks for reading, like, share, comment.