#!/bin/python3 import sys def howManyGames(p, d, m, s): # Return the number of games you can buy outVal=1 gameNum=0 thisPrice=p keepGoing=True while (keepGoing): if s>=thisPrice: gameNum+=1 s-=thisPrice else: keepGoing=False thisPrice-=d if thisPrice