Simple % question

Ben Finney ben+python at benfinney.id.au
Tue Feb 11 20:31:22 EST 2014


Scott W Dunning <swdunning at cox.net> writes:

> I just have a simple question.  I don’t understand why 1%10  = 1?

Have you read the documentation for that operator?
<URL:http://docs.python.org/3/reference/expressions.html#binary-arithmetic-operations>

The language reference <URL:http://docs.python.org/3/reference/> is the
place to look for official explanations of language features.

-- 
 \       “I met my girlfriend in Macy's; she was buying clothes, and I |
  `\           was putting Slinkies on the escalators.” —Steven Wright |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list