how to fill a list with 0 using python March 28, 2023 by Tarik Why not just: a = a + [0]*(maxLen - len(a))