So I want to count exactly the number of appearances of "100" in python. My example code:
a = " I love 1000 and 100 dollars."
b = a.count("100")
print(b)
The result is 2 but I just want it is 1.
2
[Finished in 0.1s]
Is there any basic tip for that? I'm just a beginner learn python.