bvdp <b...@mellowood.ca> writes:
>    while x < 0: x += 12
>    while x >= 12: x -= 12
> Okay, that works. Just wondering if there is an easier (or faster) way
> to accomplish this.

x = x % 12

should be the same as the above.  But are you sure that's really what
you want?
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to