Skip to content

Conversation

@Salamander098
Copy link

I am Ahsoka Tano

@Salamander098
Copy link
Author

My real name is Blaze

@Salamander098
Copy link
Author

`import math

Assign values to x and n

x = 4
n = 3

Method 1

power = x ** n
print("%d to the power %d is %d" % (x,n,power))

Method 2

power = pow(x,n)
print("%d to the power %d is %d" % (x,n,power))

Method 3

power = math.pow(2,6.5)
print("%d to the power %d is %5.2f" % (x,n,power))`

@charlax charlax closed this Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants