DEV Community

Discussion on: Daily Challenge #47 - Alphabets

Collapse
 
b2aff6009 profile image
b2aff6009

A tiny python solutiuon:

def alphabet_position(text):
    converted = [str(ord(c) - ord('a') + 1) for c in text.lower() if c >= 'a']
    return " ".join(converted)