Untitled
unknown
plain_text
a year ago
183 B
8
Indexable
a = input("Enter a multi digit number: ")
c = {}
for i in a:
c.setdefault(i,0)
c[i] += 1
for key,value in c.items():
print(f"digit {key} appears {value} times")
Editor is loading...
Leave a Comment