##### find the power

to find the Power of one number to raised another number

we know about it is written as a^b or pow(a,b). It is also called as exponents.

Exponentiation is a mathematical operation, written as b^n, involving two numbers, the base b and the exponent n. When n is a positive integer, exponentiation corresponds to repeated multiplication of the base: that is, b^n is the product of multiplying n bases

2 pow 3 = 2^3 = 2 x 2 x 2 = 8

Some common exponents have their own names: the exponent 2 (or 2nd power) is called the square of b (b^2) or b squared; the exponent 3 (or 3rd power) is called the cube of b (b^3) or b cubed. The exponent −1 of b, or 1 / b, is called the reciprocal of b.

let’s code

```
#!/usr/bin/env python
a=int(raw_input("Enter the first number: "))
b=int(raw_input("Enter the second number: "))
print a,' raised to the power ',b,' is: ',a**b
```

For more programs on Python, visit our Python Coder Archives

All rights reserved. No part of this Post may be copied, distributed, or transmitted in any form or by any means, without the prior written permission of the website admin, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, write to the owner, addressed “Attention: Permissions Coordinator,” to the admin @coderinme