In Python, I\'m trying to run a method in a class and I get an error:
Traceback (most recent call last):
File \"C:\\Users\\domenico\\Desktop\\py\\main.py\"
fibo = f.fibo references the class itself. You probably wanted fibo = f.fibo() (note the parentheses) to make an instance of the class, after which fibo.f() should succeed correctly.
f.fibo.f() fails because you are essentially calling f(self, a=0) without supplying self; self is "bound" automatically when you have an instance of the class.