Hugh wrote: > Sorry, here's an example... > > 5+7=12 > > added without carrying, 5+7=2 > > i.e the result is always less than 10
def add(a, b, c=10):
an = a + b
if an >= c:
an -= c
return an
add(5, 7) # = 2
?
Regards,
Jordan
--
http://mail.python.org/mailman/listinfo/python-list
