DEV Community

Discussion on: Daily Challenge #47 - Alphabets

Collapse
 
hectorpascual profile image
Héctor Pascual

Python :

lambda s : ' '.join([str(ord(c)-ord('a')+1) for c in s.lower() if re.search('[a-z]',c)])