recursion pow

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

Comments

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