def power(base, exp):
if exp == 0:
return 1
return base * power(base, exp - 1)
base = int(input("Enter the base number: "))
exp = int(input("Enter the exponent: "))
print(power(base, exp))
#source code --> clcoding.com
Python Developer December 04, 2024 100 Python Programs for Beginner No comments
def power(base, exp):
if exp == 0:
return 1
return base * power(base, exp - 1)
base = int(input("Enter the base number: "))
exp = int(input("Enter the exponent: "))
print(power(base, exp))
#source code --> clcoding.com
Free Books Python Programming for Beginnershttps://t.co/uzyTwE2B9O
— Python Coding (@clcoding) September 11, 2023
Top 10 Python Data Science book
— Python Coding (@clcoding) July 9, 2023
🧵:
Top 4 free Mathematics course for Data Science ! pic.twitter.com/s5qYPLm2lY
— Python Coding (@clcoding) April 26, 2024
Web Development using Python
— Python Coding (@clcoding) December 2, 2023
🧵:
0 Comments:
Post a Comment