Tips archive 26 Dec 2007 dabase.com → Kai's Tech Tips → Python → Setting/initializing a list of certain length Setting/initializing a list of certain length Published 26 Dec 2007 Another tip from deltab_ from #python. >>> l = [0] * 5 >>> l [0, 0, 0, 0, 0] ← Sorting dictionaries (code example) Setting list values →