fork(1) download
  1. # your code goes here
  2. exp=input()
  3. base=input()
  4. def pot(x,y):
  5. if y==0:
  6. return 1
  7. else:
  8. y=y-1
  9. return pot(x,y)*x
  10. print pot(exp,base)
Success #stdin #stdout 0s 23352KB
stdin
3
4
stdout
81