def power(base,exp): if(exp==1): return(base) if(exp!=1): return(base*power(base,exp-1)) #____main_____ b=int(input("Please enter base: ")) e=int(input(" Please enter exponential value: ")) print("Result:",power(b,e))Output 1: Please enter base: 4 Please enter exponential value: 4 Result: 256 Output 2: Please enter base: 2 Please enter exponential value: 9 Result: 512

इन्हें भी देखें।

- while loop
- for loop
- nested loops
- loop control statements (Break, Continue, Pass)
- if statement
- if-else statement
- if-elif statement
- nested if statement
- range() function
- keywords
- Identifiers (names)
- Literals
- Operators
- punctuatorts

Python Programs के लिये यहाँ click करें।