You are viewing a single comment's thread. Return to all comments →
def countApplesAndOranges(s, t, a, b, apples, oranges): result_a = [] result_o = [] for i in apples: i = i + a if i in range(s,t+1): result_a.append(i) print(len(result_a)) for o in oranges: o = o + b if o in range(s,t+1): result_o.append(o) print(len(result_o))
Seems like cookies are disabled on this browser, please enable them to open this website
Apple and Orange
You are viewing a single comment's thread. Return to all comments →