DEV Community

Rajeshkumar Harinathan
Rajeshkumar Harinathan

Posted on

Python List Basics

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.

  1. 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).
  2. The items in a list are called elements or values.
  3. The values can be of any datatype (int, str, floats, or another list).
  4. A list starts with an open square bracket [ and ends with a closed square bracket ].
  5. The following codes will explain the list data type, indexing, and slicing of the values.

Top comments (0)