[Tutor] The % operator (original) (raw)

Gregor Lingl glingl at aon.at
Tue Jul 6 08:17:23 CEST 2004


Bernard Lebel schrieb:

Hello,

I have been reading many examples where the % operator is used, and I know I have read in the docs its meaning. However I can't seem to be able to retrieve it, and a search doesn't return interesting results. So I'm turning to you, honorable people: could someone be kind to explain to me what is doing the % operator, how it works, or at least point me to the appropriate page in the Python documentation? There are two % operators in Python. One for numeric types: http://docs.python.org/lib/typesnumeric.html

the other one for string formatting: http://docs.python.org/lib/typesseq-strings.html

Regards, Gregor

Thank you Bernard


Tutor maillist - Tutor at python.org http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list