example

Sai_kiran_rachakonda · June 14, 2022
def power(x,y):
    if y == 0:
        return 1
    else:    
        return x * power(x, y-1)
    
    
print(power(2,3))
Output

Comments

Please sign up or log in to contribute to the discussion.