gene_copy_numbers = [32,3,5,12,45,23,88,1,8,5,10,0,32,0,88] gene_names =['has-let-7a','has-mir-9' ,'has-mir-121' ,'has-mir-23', 'has-mir-19', 'has-mir-221', 'has-mir-89' , 'has-mir-1034', 'has-mir-12', 'has-mir-2088', 'has-mir-56' , 'has-mir-55a' , 'has-mir-55b' , 'has-mir-127', 'has-mir-17'] avg_copies= sum(gene_copy_numbers) / len(gene_copy_numbers) highest_copy = max(gene_copy_numbers) print (str(avg_copies)) dic = {} for key in gene_names: for value in gene_copy_numbers: dic[key]=value gene_copy_numbers.remove(value) break print ("miRNAs with above average copy numbers: ") for value in dic.keys(): if "-mir" in value and dic[value] > avg_copies: print (value) print ("miRNAs with 0 copy numbers: ") for value in dic.keys(): if dic[value] is 0: print (value) print ("Resultant dictionary is : " + str(dic)) print ("Highest copy number is : " + str(highest_copy))