Mine
public python v1 · immutablecash = 100class Training: def __init__(self, type, cost): self.type = type self.cost = costdef purchase_training(training): if cash >= training.cost: cash -= training.cost print "You have succesfully purchased", training.type, ". You now have", cash, "left." else: print "You do not have enough money."purchase_training("kung foo", 40)purchase_training("tai chi", 60)purchase_training("ninjisu", 100000)