I tried to take a user input binary list and used the count function to get the number of times the number 0 has repeated. But for some reason it is always printing 0 as output. Why?
My code:
a = list(map(int, input().split()))
b = a.count(0)
print(b)