On python 3.3 using Ipython
class Gear:
def __init__(self,chainring,cog):
self.chainring = chainring
self.cog = cog
def ratio () :
ratio = self.chainring/self.cog
return ratio
mygear = Gear(52,11)
mygear.ratio()
Error
TypeError: ratio() takes 0 positional arguments but 1 was given