Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (140 points)

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)

Please log in or register to answer this question.

Browse Categories

...