'>=' not supported between instances of 'method' and 'int'
'>=' not supported between instances of 'method' and 'int' Question: Here is the method causing the error: class Kilpailu(): def __init__(self, nimi, pituuskm, osallistujat): self.nimi = nimi self.pituuskm = pituuskm self.osallistujat = osallistujat def kilpailu_ohi(self): for i in self.osallistujat: if (i.getKuljettuMatka>=self.pituuskm): return True else: return False edit: here is also where getKuljettuMatka is defined class …