

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 Questions & Answers
- How to create an empty dictionary in Python?
- How to create an empty tuple in Python?
- How do you create an empty list in Java?
- How to create an empty file using Python?
- 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 a list to an empty list in C#?
- 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 create an empty plot using ggplot2 in R?
- How to write an empty function in Python?
- How to check if a list is empty in Python?
- C# program to create an empty string array
Advertisements