
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
How to create an empty list in Python?
You can create empty list object by giving no elements in square brackets in assignment statement. Empty list object is also created by list() built-in function without any arguments
>>> L1 = [] >>> L1 [] >>> L1 = list() >>> L1 []
- Related Articles
- How to create an empty dictionary in Python?
- How to create an empty tuple in Python?
- How to create an empty class in Python?
- How do you create an empty list in Java?
- How to create an empty file using Python?
- How to initialize a list to an empty list in C#?
- How to create an empty VIEW in MySQL?
- How to create an empty matrix in R?
- How to create an empty array in Kotlin?
- How to initialize an empty array list in Kotlin?
- How to create an empty data frame in R?
- How to remove an empty string from a list of empty strings in C#?
- How to check if a list is empty in Python?
- How to create an empty plot using ggplot2 in R?
- How to write an empty function in Python?

Advertisements