How to use Modulo?
This works
How come I get the following error?
print(10%) but I can't use % in a method:How come I get the following error?
print(10%)%def is_prime(n):
for i in range(2,n):
if (n%i) == 0:
return False
return Trueerror: Expression [8]:7:10: 'object' does not implement the '__mod__' method
if (n%i) == 0:
~^
expression failed to parse (no further compiler diagnostics)