loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7867685001603073","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"ZGVmIHJlY3Vyc2l2ZUV4cChiYXNlLCBleHBvbmVudCk6CiAgaWYgYmFzZSA8IDIgb3IgZXhwb25lbnQgPT0gMToKICAgIHJldHVybiBiYXNlCiAgZWxpZiBleHBvbmVudCA9PSAwOgogICAgcmV0dXJuIDEKICBlbHNlOgogICAgcmV0dXJuIGJhc2UgKiByZWN1cnNpdmVFeHAoYmFzZSwgZXhwb25lbnQgLSAxKQoKcHJpbnQocmVjdXJzaXZlRXhwKDAsMCkpCnByaW50KHJlY3Vyc2l2ZUV4cCg1LDApKQpwcmludChyZWN1cnNpdmVFeHAoMiwzKSkKcHJpbnQocmVjdXJzaXZlRXhwKDQsMikpCnByaW50KHJlY3Vyc2l2ZUV4cCgxLDUpKQogIA=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def recursiveExp(base, exponent):
  if base < 2 or exponent == 1:
    return base
  elif exponent == 0:
    return 1
  else:
    return base * recursiveExp(base, exponent - 1)

print(recursiveExp(0,0))
print(recursiveExp(5,0))
print(recursiveExp(2,3))
print(recursiveExp(4,2))
print(recursiveExp(1,5))