noydb:

> I have not worked with the %.
> Can you provide a snippet of your idea in code form?

Then it's a very good moment to learn using it:
http://en.wikipedia.org/wiki/Modulo_operator

>>> 10 % 3
1
>>> 10 % 20
10
>>> -10 % 3
2
>>> -10 % -3
-1


>Something like that....<

Implement your first version, run it, and show us its output. Then I/
we can try to give you suggestions to improve your code.


>existing code???<

Sometimes you have to write code... that's life.

Bye,
bearophile
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to