You are viewing a single comment's thread. Return to all comments →
def countApplesAndOranges(s, t, a, b, apples, oranges): c_apples = sum([1 for apple in apples if (apple + a) >= s and (apple + a) <= t]) c_oranges = sum([1 for orange in oranges if (orange + b) >= s and (orange + b) <= t]) print(c_apples) print(c_oranges)
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 →
Python 3