You are viewing a single comment's thread. Return to all comments →
im new at python and practicing list comprehension
def getTotalX(a, b): xValues = [n for n in range(max(b)+1)] xValues.remove(0) l1 = [x for x in xValues for y in a if x%y!=0] l2 = [x for x in xValues if not x in l1] l3 = [x for x in l2 for y in b if y%x!=0] l4 = [x for x in l2 if not x in l3] return len(l4)
Seems like cookies are disabled on this browser, please enable them to open this website
Between Two Sets
You are viewing a single comment's thread. Return to all comments →
im new at python and practicing list comprehension