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:
- Indexing Lists
- Lists are Mutable
- Updating and Slicing Lists
- Use of operators in List
- Methods used in List
- Built-in functions in List
- Deleting Elements from List
- Constructing a List with List Items
- List and Strings
- Parsing lines
- Objects and values
- Aliasing
- List arguments
- List Comprehensions
Now, Learn it in detail👉: https://bit.ly/3gDrVCC
Top comments (0)