You are viewing a single comment's thread. Return to all comments →
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)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Basic Probability
You are viewing a single comment's thread. Return to all comments →