Python program to find the exponentiation of a number
To write a Python program to find the exponentiation of a number.
number = int(input(” Please Enter any Positive Integer : “))
exponent = int(input(” Please Enter Exponent Value : “))
power = 1
for i in range(1, exponent + 1):
power = power * number
print(“The Result of {0} Power {1} = {2}”.format(number, exponent, power))
OUTPUT:
Please Enter any Positive Integer : 3
Please Enter Exponent Value : 2
The Result of 3 Power 2 = 9
Related posts:
1. Download Python
2. How to run a Python Program
3. Python program to find GCD of two numbers
4. Python Program to find the square root of a number by Newton’s Method
5. Python Program to find the maximum from a list of numbers
6. Python Program to perform Linear Search
7. Python Program to perform binary search
EasyExamNotes.com Python program to find the exponentiation of a number
Python program to find the exponentiation of a number
8. Python Program to perform selection sort
9. Python Program to perform insertion sort
10. Python program to find first n prime numbers
11. Python program Merge sort
12. NumPy
13. Python library
14. Python Installation and setup
15. Python Variables
16. Python Data Types
17. Python lists
18. Python Creating and Accessing List
19. Python List Manipulation
20. Python Input function
21. Python list slicing
22. Python Class and Object
23. Python find the output programs
24. Python Introduction
25. Python basic syntax
26. Python int data type
27. Python float data type
28. Understanding Floating-Point Precision in Python: Avoiding Numerical Computation
Errors
29. How to search Python library using command line tool
30. Which python libraries are used to load the dataset ?
31. Why is there no need to mark an int float in a variable in Python ?
32. Does Python have double, short long data types
33. What are High-Level Programming Languages?
EasyExamNotes.com Python program to find the exponentiation of a number
Python program to find the exponentiation of a number
34. What are Interpreted Programming Languages?
35. What are General-Purpose Programming Languages?
36. What is a variable in Python?
EasyExamNotes.com Python program to find the exponentiation of a number