Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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):



    def Pow1(a,b):

        if b%2 == 0:

           return Pow1(a,b/2)*Pow1(a,b/2)


          return a*Pow1(a,b/2)*Pow1(a,b/2)


x = Pow()


Please log in or register to answer this question.

Browse Categories