list size python3 code example Example: python list of size li = [None] * 5 # [None, None, None, None, None] li = [0] * 5 # [0, 0, 0, 0, 0]