1 Answer
0
In python the size of the list can change dynamically, you do not need to declare upfront. But if you need a list of 10 elements, you can do for example:
ten = list(range(10))
ten2 = [0 for i in range(10)]
First one just give you digits from 0 to 9 and second one is a list comprehension resulting in 10 zeros.