Initialising an array of fixed size in Python
arrays, list, python
Solution
You can use:
>>> lst = [None] * 5
>>> lst
[None, None, None, None, None]
Problem
I would like to know how i can initialize an array(or list), yet to be populated with values, to have a defined size. For example in C: ``` int x[5]; /* declared without adding elements*/ ``` How do I do that in Python?