D
Daniel
Hi, is there a way to check if a letter entered is an uppercase ASCII
character?
Thanks
Daniel
character?
Thanks
Daniel
Daniel said:Hi, is there a way to check if a letter entered is an uppercase ASCII
character?
Thanks
Daniel
Hi, is there a way to check if a letter entered is an uppercase ASCII
character?
Greg said:If you just want to know if a character is uppercase:
if character.isupper():
<some code>
If it needs to be ASCII, the simplest way is probably:
if ord(character) in range(65, 91):
<some code>
greg
If it needs to be ASCII, the simplest way is probably:
if ord(character) in range(65, 91):
<some code>
Daniel said:Hi, is there a way to check if a letter entered is an uppercase ASCII
character?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.