Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
183 B
1
Indexable
Never
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")
    
    
Leave a Comment