fork download
  1. # your code goes here
  2. def power(x, n):
  3. if n < 1:
  4. return 1
  5. else:
  6. return x * power(x, n-1)
  7.  
  8. print power(2, 10)
  9. #output must be 1024
Success #stdin #stdout 0.01s 7736KB
stdin
Standard input is empty
stdout
1024