I'm trying to call a function from a class in python. This is my code:
class JCMT:
def be(self):
if self > 330000:
return 0.64
else:
return 0.69
def bs(self):
if self > 330000:
return 14
else:
return 20
f = 220258
print JCMT.bs(f)
I'm getting an error of TypeError: unbound method bs() must be called with JCMT instance as first argument (got int instance instead)
Could someone tell me where I'm going wrong?