You are viewing a single comment's thread. Return to all comments →
Python 3
def getMoneySpent(keyboards, drives, b): m = -1 for k in keyboards: for d in drives: c = k + d if c > m and c <= b: m = c return m
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 3