Greg Krohn wrote:[color=blue]
> Daniel wrote:
>[color=green]
>> Hi, is there a way to check if a letter entered is an uppercase ASCII
>> character?
>>
>> Thanks
>>
>> Daniel[/color]
>
>
> If you just want to know if a character is uppercase:
>
> if character.isupp er():
> <some code>
>
> If it needs to be ASCII, the simplest way is probably:
>
> if ord(character) in range(65, 91):
> <some code>
>
>
>
> greg
>[/color]
Daniel wrote on Thu, 13 Nov 2003 19:59:12 -0000:
[color=blue]
> Hi, is there a way to check if a letter entered is an uppercase ASCII
> character?[/color]
ascii_uppercase in the string module contains all uppercase ASCII chars.
Use "if ... in ..." to find out whether your letter is in that constant.
--
Yours,
Andrei
=====
Mail address in header catches spam. Real contact info (decode with rot13): cebwrpg5@jnanqb b.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
gur yvfg, fb gurer'f ab arrq gb PP.
"Daniel" <danielNO@SPAMh alliwell1.plus. com> wrote in message news:<QmRsb.799 7$lm1.54932@war ds.force9.net>. ..[color=blue]
> Hi, is there a way to check if a letter entered is an uppercase ASCII
> character?[/color]
Comment