You are viewing a single comment's thread. Return to all comments →
another way:) print(len([i for i in apples if i+a in range(s,t+1)])) print(len([i for i in oranges if i+b in range(s,t+1)]))
Apple and Orange
You are viewing a single comment's thread. Return to all comments →
another way:) print(len([i for i in apples if i+a in range(s,t+1)])) print(len([i for i in oranges if i+b in range(s,t+1)]))