[Tutor] [Fwd: Re: n.isalnum() is failing]

2007-07-04 Thread Terry
Thanks Alan, I managed to get totally confused by the different definitions of calculating a leap year. The book (Core Python) described the exercise thus: "Modulus. Determine whether a given year is a leap year, using the following formula: a leap year is one that is divisible by four, but not

Re: [Tutor] [Fwd: Re: n.isalnum() is failing]]

2007-07-03 Thread Alan Gauld
"Terry" <[EMAIL PROTECTED]> wrote > I was using the "t1 == int(t1)" type compare, that I > learned in BASIC about 25 years ago, to discover > a remainder or no. What a pity. Even the most elementary BASIC has always had the MOD operator for finding remainders. and a \ operator for integer d