+ 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
5 Respostas
+ 11
Man, it took me a while...
You're missing a comma between the 'v' and 'w' declarations ;)
+ 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
+ 2
yop @kuba is right you missed "," between v and w
+ 1
Wow Thanks so much!!!!
- 1
first of all make this algorithm in computer
because there is some problem in mobile software