Answers for "how to set index position for alphabet characters in c#"

4

position in alphabet python

from string import ascii_lowercase
LETTERS = {letter: str(index) for index, letter in enumerate(ascii_lowercase, start=1)} 

def alphabet_position(text):
    text = text.lower()
    numbers = [LETTERS[character] for character in text if character in LETTERS]
    return ' '.join(numbers)
Posted by: Guest on July-27-2020

Code answers related to "how to set index position for alphabet characters in c#"

Python Answers by Framework

Browse Popular Code Answers by Language