I have a Python version 3.3.0 and I am not sure why it does not let me do long for b and m here... I tried to look up the answers on here and but nothing helped...thanks
im getting an error saying
NameError: global name 'long' is not defined
power = long(b) % long(m)
In Python 3.x, use
int
instead oflong
.From What’s New In Python 3.0, Integers: