[Tutor] While loop issue, variable not equal to var or var
Alan Gauld
alan.gauld at btinternet.com
Sat Jul 12 20:32:03 CEST 2014
On 12/07/14 13:19, Steven D'Aprano wrote:
> Because the person might have typed any of:
>
> grosse
> große
> etc., and you want to accept them all, just like in English
The bit I was missing was that a German user might use the ss version
instead the ß so testing for either of them alone is insufficient.
lower() or casefold() would deal with the mixed case variations, but
lower() would not fix the ss v ß issues.
Thanks,
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list