0

Whats wrong here

phone= input("phones: ") mapping= { "1" : "one" "2" : "two" "3" : "three" } output= " " for ch in phone: output+=mapping.get(ch,"!")+" " print(output)

21st Jun 2019, 6:42 AM
Ankit Tiwari
Ankit Tiwari - avatar
2 Respuestas
+ 6
There need to be commas after each key/value pair in the dictionary
21st Jun 2019, 6:52 AM
Anna
Anna - avatar
+ 1
Anna Ok,thanks
21st Jun 2019, 11:53 AM
Ankit Tiwari
Ankit Tiwari - avatar