Create 3 - 26 Letters.py
This commit is contained in:
parent
a1fd618e90
commit
80822b5cf9
5
9/3 - 26 Letters.py
Normal file
5
9/3 - 26 Letters.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
letter = input()
|
||||||
|
if ord("A") <= ord(letter) <= ord("Z"):
|
||||||
|
print(ord(letter)-ord("A")+1)
|
||||||
|
else:
|
||||||
|
print("invalid")
|
Loading…
Reference in New Issue
Block a user