declare array with size in python 3 code example Example: intialize array to certain lenght python >>> lst = [None] * 5 >>> lst [None, None, None, None, None]