@christinaSmith/

to_the_power.py

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7517413598530551","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"YSA9IGludChpbnB1dCgiV2hhdCBudW1iZXIgd291bGQgeW91IGxpa2UgdG8gdXNlPzogIikpCgpiID0gaW50KGlucHV0KCJXaGF0IHBvd2VyIHdpbGwgd2UgYmUgZ2l2aW5nIHRvIHlvdXIgbnVtYmVyPzogIikpCgpkZWYgdG9fdGhlX3Bvd2VyKGMsZCk6CiAgICByZXR1cm4gKGMgKiogZCkKCmFuc3dlciA9IHRvX3RoZV9wb3dlcihhLGIpCgpwcmludCggc3RyKGEpICsgIiB0byB0aGUgcG93ZXIgb2YgIiArIHN0cihiKSArICIgZXF1YWxzICIgKyBzdHIoYW5zd2VyKSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
a = int(input("What number would you like to use?: "))

b = int(input("What power will we be giving to your number?: "))

def to_the_power(c,d):
    return (c ** d)

answer = to_the_power(a,b)

print( str(a) + " to the power of " + str(b) + " equals " + str(answer))