csc-python-solutions/09/3 - 26 Letters.py
2021-02-18 17:49:56 +01:00

6 lines
116 B
Python

letter = input()
if ord("A") <= ord(letter) <= ord("Z"):
print(ord(letter)-ord("A")+1)
else:
print("invalid")