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)
2 Réponses
+ 6
There need to be commas after each key/value pair in the dictionary
+ 1
Anna Ok,thanks