You are viewing a single comment's thread. Return to all comments →
We can also use range function here :
range
print(sum([ 1 for app in apple if a+(app) in range(s,t+1)])) print(sum([ 1 for org in orange if b+(org) in range(s,t+1)]))
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 →
We can also use
range
function here :