0

What if I code something like : list(range(1,26,0))? Will it make a list with 26 1's?

I want to make a list with same numbers without using a loop.

23rd Oct 2016, 8:29 AM
sya sya
sya sya - avatar
2 Respostas
+ 2
you can't set the step argument to be 0. so just do: [n]*m
23rd Oct 2016, 9:26 AM
w0rmh013
w0rmh013 - avatar