You are viewing a single comment's thread. Return to all comments →
inclusiverange = range(s,t+1) ap = sum(1 for apple in apples if apple + a in inclusiverange) on = sum(1 for orange in oranges if orange + b in inclusiverange) print(ap) print(on)
inclusiverange = range(s,t+1)
ap = sum(1 for apple in apples if apple + a in inclusiverange)
on = sum(1 for orange in oranges if orange + b in inclusiverange)
print(ap)
print(on)
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 →