putting date strings in order
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Tue May 12 08:27:58 EDT 2009
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
More information about the Python-list
mailing list