DEV Community

Cover image for Python 3: Concept of LIST in Detail

Python 3: Concept of LIST in Detail

Learning from Mistakes because you Learn Programming by making ERRORS. Let's Learn-Together♥
・2 min read

The dictionary meaning of LIST is a number of connected items or names written or printed consecutively, typically one below the other.

In the real-world, lists are considered in many ways like a playlist of songs, a collection of your favorite videos, a list of user databases, and there are many more. But, if you are given a task about handling a list of users and filter out specific users under specific conditions then it becomes a tedious job to filter the list by going through each and every user. In such scenarios, programming comes into place to make your work easier.

So, now let us understand 'What is a LIST?' in python programming. In python, the list is a mutable or changeable, ordered sequence of elements where each element or value that is inside of a list is called an item.

In string, how each value/element is represented as a character, and similarly in the list, each value/element is separated by comma where each element can be a string, variable, or constants enclosed in the [] bracket.

Syntax of List: ['LetsUpgrade', 'Batch1', B2, B3]

Nested List: ['LetsUpgrade', ['java', 'python', 'c++'], 1, 2, ['B1', 'B2'], 'Exam']

Topics to be covered in the LIST are as follows:

  1. Indexing Lists
  2. Lists are Mutable
  3. Updating and Slicing Lists
  4. Use of operators in List
  5. Methods used in List
  6. Built-in functions in List
  7. Deleting Elements from List
  8. Constructing a List with List Items
  9. List and Strings
  10. Parsing lines
  11. Objects and values
  12. Aliasing
  13. List arguments
  14. List Comprehensions

Now, Learn it in detail👉:

Discussion (0)