a1_2.py

def remainder_basic(dividend, divisor):
	return dividend - int(dividend / divisor) * divisor

def remainder_divmod(dividend, divisor):
	q, r = divmod(dividend, divisor)
	return r

def remainder_percent(dividend, divisor):
	return dividend % divisor

print remainder_basic(10, 4)
print remainder_divmod(10, 4)
print remainder_percent(10, 4)