+ 3

I made a program, but cant figure out what is wrong.

I would really appreciate if someone could explain the 'syntax error' I receive when I hit run. The code is meant to take an input word and output a string with the number values equivalent to the letters. https://code.sololearn.com/cY4uFZps9dzW/?ref=app

13th Feb 2018, 6:47 PM
Erik Umble
Erik Umble - avatar
5 Answers
+ 11
Man, it took me a while... You're missing a comma between the 'v' and 'w' declarations ;)
13th Feb 2018, 7:08 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 5
Well spotted Kuba. @Erik A less error prone way to create that specific dictionary is d={} for i in range(26): d[chr(ord('a')+i)]=i+1
13th Feb 2018, 7:18 PM
Louis
Louis - avatar
+ 2
yop @kuba is right you missed "," between v and w
13th Feb 2018, 7:18 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Wow Thanks so much!!!!
13th Feb 2018, 7:38 PM
Erik Umble
Erik Umble - avatar
- 1
first of all make this algorithm in computer because there is some problem in mobile software
15th Feb 2018, 1:36 PM
Premjeet kumar
Premjeet kumar - avatar