that’s in python btw
print(custumer)
phone = input("phone number pls: ")
num ={
1 : "one",
2 : "two",
3 : "thre",
4 : "four",
5 : "five",
6 : "six",
7 : "seven",
8 : "eight",
9 : "nine",
0 : "zero",
}
for item in phone :
print(num[int(phone[item])])
console
”’phone number pls: 12
line 15, in
print(num[int(phone[item])])
TypeError: string indices must be integers”’
i was expecting it to work (print “one” and then “two”)
New contributor
Blank Blankson YouKnowWho is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.