My Everyday Readings - List data type - Indexing - Slicing
Hi Friends,
Welcome to my blog. I am an Embedded hardware guy trying to upgrade my skills. I am sharing a summary of the new stuff I am learning daily.
Today, I read the basics of the List data type used in Python programming.
- A list is a value that contains multiple values in an ordered sequence. In other words, a list is a collection of items that are ordered and changeable(mutable).
- The items in a list are called elements or values.
- The values can be of any datatype (int, str, floats, or another list).
- A list starts with an open square bracket [ and ends with a closed square bracket ].
- The following codes will explain the list data type, indexing, and slicing of the values.
Top comments (0)