Nếu có sai thì bạn nói mình nhé.
================================
st= input("Nhap chuoi: ")
d={}
for i in st:
if i in d:
d[i]+=1
else:
d[i]=1
print("So:\n===================== ")
for i in d:
if i in ['0','1','2','3','4','5','6','7','8','9']:
print(i, ': ', d.get(i))
print("\nChu:\n===================== ")
for i in d:
if i not in ['0','1','2','3','4','5','6','7','8','9',' ']:
print(i, ': ', d.get(i))