Simple % question

Scott W Dunning swdunning at cox.net
Tue Feb 11 22:30:23 EST 2014


On Feb 11, 2014, at 6:36 PM, Chris Angelico <rosuav at gmail.com> wrote:
> 
> The real question is: What do you expect that symbol to mean?
> 
> Its actual meaning is quite simple. In long division, dividing one
> number by another looks like this:

Yeah I understand what the % means.  It just confused me that 1%10 was 1.  In my thought process it just didn’t work.  1/10= .1 and I just didn’t see where the remainder of 1 came in.  





More information about the Python-list mailing list