# illustrating http://stackoverflow.com/a/28539821/2932052import math base = 13exp = 100mod = 2print math.pow(base, exp) % modprint pow(base, exp, mod)
Standard input is empty
0.0 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!