num = [1, 3, 3, 7, 3, 2, 1] 

n=3
c=0

for i in num:
    if n == i:
        c+=1
print(c)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: