Cómo obtener el resto en Python
a = 10
b = 3
c = a % b
print(c) # Prints 1
Red Tailed Cockatoo
a = 10
b = 3
c = a % b
print(c) # Prints 1
def fractional_part(numerator,denominator):
remainder = numerator%denominator
if denominator == 0:
return 0
else:
return remainder