osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple % question


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