Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create an empty list in python

# There are two common methods to create an empty list
x = list()
print(len(x))		# Output: 0
y = []
print(len(x))		# Output: 0
Source by blog.finxter.com #
 
PREVIOUS NEXT
Tagged: #create #empty #list #python
ADD COMMENT
Topic
Name
9+1 =