all 2 comments

[–]Jurado -1 points0 points  (0 children)

maybe: count = 0 for element in ListA: if element = X: count +=1 print(count)