On 07/11/05, john boy <[EMAIL PROTECTED]> wrote:
> Hey can somebody tell me what the "%" function does...I am not math
> illiterate...its just a new symbol for me....is it a divisor? remainder
> something another??

For numeric values, it's the modulo operator - see
<http://docs.python.org/ref/binary.html> and
<http://en.wikipedia.org/wiki/Modular_arithmetic>.

Over strings, '%' performs string formatting. See
<http://docs.python.org/lib/typesseq-strings.html>.

--
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to