Commit 804c935b authored by Siu, Pui Chung's avatar Siu, Pui Chung
Browse files

Add new file

parent 5da5572e
def alphabet_position(text):
#filter through all non-alphabet characters
alphabets_low = "".join([chr for chr in text.lower() if chr.isalpha()])
alphabet_position = " ".join([str(ord(alp) - 96) for alp in alphabets_low])
return alphabet_position
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment