Simple % question

Scott W Dunning swdunning at cox.net
Wed Feb 12 04:30:23 CET 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