[Solved] Convert String to numbers separated by dots where a=1 and z=26


text = "Hello World".lower()
li = []
for i in text:
    if i!=' ':
        li.append(str(ord(i)-96))
    
print('.'.join(li))

This should work

solved Convert String to numbers separated by dots where a=1 and z=26