baf76060-5431-4984-a947-8f7a770fba4b
prompter
How do I get the power of a number in python?
c8cceaac-5731-4ab5-ae64-5cff0ad87772
baf76060-5431-4984-a947-8f7a770fba4b
assistant
The pow() function returns the value of x to the power of y in python. 
The syntax for the pow() looks like this:
```
a = 4 # a is the base number.
b = 3 # b is the exponent, or the power that a would be raised to.
c = 5 # c is an optional parameter for the pow() function. c here is the modulus.

x = pow(a,b,c) # This is the same as (4 * 4 * 4) % 5

# Remember, the third parameter, ie. c here is optional. Hence, pow() can also be written as following:
y = pow(4,3) # This is the same as 4 * 4 * 4.

print(x) # The output would be 12.
print(y) # The output would be 64.
```
8746bc9d-a2cb-4094-ba21-b76fda9a6043
c8cceaac-5731-4ab5-ae64-5cff0ad87772
prompter
Can you explain the "x = pow(a,b,c)" a bit more? I find it a little bit confusing.