xxxxxxxxxx
a = 10
b = 3
c = a % b
print(c) # prints 1 as remainder
xxxxxxxxxx
def fractional_part(numerator,denominator):
remainder = numerator%denominator
if denominator == 0:
return 0
else:
return remainder
xxxxxxxxxx
inches=44.5 # height of child
print(f'zach is {inches//12} feet and {inches%12} inches tall')
#output
# zach is 3.0 feet and 8.5 inches tall