Answers for "can you set the size of a list in python"

2

getting size of list in python

#get length of list
list_example = ["python","ruby","java","javascript","c#","css","html"]
print(len(list_example))
Posted by: Guest on December-23-2021
4

python list of size

li = [None] * 5 # [None, None, None, None, None]
li = [0] * 5 # [0, 0, 0, 0, 0]
Posted by: Guest on May-16-2020

Code answers related to "can you set the size of a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language