import random # create a list of 10 random integers from 1 to 100 # define a function that returns a new array that is # the same as your randomly generated one, except that # the even numbers are removed. a = [] for i in range(10): a.append(random.randint(1,100)) print a # Here's how you calculate remainders: print "remainder of 15 / 2 =",15 % 2 print "remainder of 39 / 3 =",39 % 3