checking for ASCII character

Andrei project5 at
Thu Nov 13 21:19:19 CET 2003

Daniel wrote on Thu, 13 Nov 2003 19:59:12 -0000:

> Hi, is there a way to check if a letter entered is an uppercase ASCII
> character?

ascii_uppercase in the string module contains all uppercase ASCII chars.
Use "if ... in ..." to find out whether your letter is in that constant.



Mail address in header catches spam. Real contact info (decode with rot13):
cebwrpg5 at jnanqbb.ay. Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq
gur yvfg, fb gurer'f ab arrq gb PP.

More information about the Python-list mailing list