• + 1 comment
    lst1=[1,2,3,4,5,6]
    lst2=[1,2,3,4,5,6]
    count=0
    count_of_occurences=0
    for i in range(0,len(lst1)):
        for j in range(0,len(lst2)):
            if lst1[i]+lst2[j]>0:
                count_of_occurences+=1
            if lst1[i]+lst2[j]<=9:
                count+=1
    
    print(count)
    print(count_of_occurences)