You are viewing a single comment's thread. Return to all comments →
PYTHON If in dought pls ask
def howManyGames(p, d, m, s): # Return the number of games you can buy games=0 i=0 while s>=0: cost=p-d*i if cost>m: s-=cost else: s-=m games+=1 i+=1 return games-1
Seems like cookies are disabled on this browser, please enable them to open this website
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
PYTHON If in dought pls ask