Create 3 - 26 Letters.py

This commit is contained in:
Lukas Baumann 2021-02-18 10:10:27 +01:00 committed by GitHub
parent a1fd618e90
commit 80822b5cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
9/3 - 26 Letters.py Normal file
View File

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