fork(1) download
  1. # illustrating http://stackoverflow.com/a/28539821/2932052
  2. import math
  3.  
  4. base = 13
  5. exp = 100
  6. mod = 2
  7. print math.pow(base, exp) % mod
  8. print pow(base, exp, mod)
  9.  
Success #stdin #stdout 0.01s 7692KB
stdin
Standard input is empty
stdout
0.0
1