# ============================================================
# Practice Problem 2: Count All Digits (0~9) in One Number
# ============================================================
# [Problem]
# Input one integer.
# Count how many times each digit (0~9) appears.
# Print counts from 0 to 9 (one per line).
# [Input Example]
n = '0123456789'
'''# # 0 1 2 3 4 5 6 7 8 9
num = [0] * 10 # [0,1,0,0,0,0,0,0,0,0]
# 0 있으면 num[0]+=1
# 1 있으면 num[1]+=1
# 2 있으면 num[2]+=1
for i in range(len(n)):
a = int(n[i])
num[a] += 1
print(num)'''
To embed this project on your website, copy the following code and paste it into your website's HTML: