How do you find if str is in a list, more than one time, and the amount?
list = [hi, hi, bye ,hello]
if "hi" in list:
print("hi is in the list")
That won't work since it does not show the amount that "hi" was in the list.
I would like it to output: "hi" is in the list 2 times. I hope this is a good question.