I am getting type error: Pow1 () takes 2 positional arguments but 3 were given . could you please let me know how to solve this issue?
class Pow:
#def __init__(self):
#self.c=0
def Pow1(a,b):
if b%2 == 0:
return Pow1(a,b/2)*Pow1(a,b/2)
else:
return a*Pow1(a,b/2)*Pow1(a,b/2)
x = Pow()
x.Pow1(1,2)