12 elements long. How to fill it out of '0' or 'None' if it's shorter than 12?
Can you please be more clear with example?
ls = [ your list ] ls.extend([fill_value] * (12 - len(ls)))
if you're inserting the items yourself you can start with an array of length 12 arr = [0 for _ in range(12)]
thank you guys, i made out on myself, but thanks anyway.
Обсуждают сегодня