You are viewing a single comment's thread. Return to all comments →
Python: def getMoneySpent(keyboards, drives, b): return max([k+d for k in keyboards for d in drives if k+d<=b] or [-1])
Seems like cookies are disabled on this browser, please enable them to open this website
Electronics Shop
You are viewing a single comment's thread. Return to all comments →
Python: def getMoneySpent(keyboards, drives, b): return max([k+d for k in keyboards for d in drives if k+d<=b] or [-1])