나는 이렇게 학습한다/Algorithm & SQL
1214. Find the position!
daco2020
2022. 12. 14. 22:22
When provided with a letter, return its position in the alphabet.
Input :: "a"
Ouput :: "Position of alphabet: 1"
Solution:
def position(alphabet):
return f"Position of alphabet: {ord(alphabet)-96}"