python define an array with length code example Example: python define an array with length >>> lst = [None] * 5 >>> lst [None, None, None, None, None]