0
Plss help me in this situation. The proble is "type error: x.isEven() missing 1 positional argument 'num'
class Number: def __init__(self, num): self.value = num #your code goes here @property def isEven (self, num): if self.value%2==0: return True else: return False x = Number(int(input())) print(x.isEven)
1 Resposta
+ 1
Remove that 'num' argument from 'isEven' function