import random #random numbers 0-9 in a list of length 10 array = [random.randint(0,9) for i in range(10)] print(array)