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

Simple % question

On Wednesday, February 12, 2014 6:36:17 AM UTC+5:30, Scott W Dunning wrote:
> I just have a simple question.  I don't understand why 1%10  = 1?

This is not really about python. See

Particularly the examples section and note that when you divide a by b you get a 
quotient -- q and remainder -- r.  In your case a is 1 b is 10.
Now see that wikipedia page