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)

9th Aug 2021, 2:48 AM
joser Cuadra
joser Cuadra - avatar
1 Answer
+ 1
Remove that 'num' argument from 'isEven' function
9th Aug 2021, 3:02 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar