How can I create a list
which contains only zeros? I want to be able to create a zeros list
for each int
in range(10)
For example, if the int
in the range was 4
I will get:
[0,0,0,0]
and for 7
:
[0,0,0,0,0,0,0]
How can I create a list
which contains only zeros? I want to be able to create a zeros list
for each int
in range(10)
For example, if the int
in the range was 4
I will get:
[0,0,0,0]
and for 7
:
[0,0,0,0,0,0,0]
Latest questions