Why is this returning an error when I try to call this function recursively in python3?
class Solution:
def climbStairs(self, n: int) -> int:
if n == 2:
return 2
if n == 3:
return 3
else:
return climbStairs(self, n - 1) + climbStairs(self, n - 2)