All pastes #388203 Raw Edit

Mine

public python v1 · immutable
·published 2007-03-09 22:10 UTC
rendered paste body
cash = 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)