[Tutor] project euler #4
Alan Gauld
alan.gauld at yahoo.co.uk
Mon May 11 19:39:20 EDT 2020
On 11/05/2020 19:08, Mats Wichmann wrote:
>
> def isPalindrome(n):
> n = str(n).casefold() # eliminate any string case differences
I hadn't noticed casefold() before, but when I experiment it seems
to be the same as lower(). What is the difference?
The help() documentation doesn't clarify things much.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list