How would I find how many times each string appears in my list?
Say I have the word:
\"General Store\"
that is in my list like 20 t
votes=["General Store", "Mall", "General Store","Ice Cream Van","General Store","Ice Cream Van","Ice Cream Van","General Store","Ice Cream Van"]
for vote in set(votes):
print(vote+" - voted "+str(votes.count(vote))+" times")
Try this. It will output
General Store - voted 4 times
Ice Cream Van - voted 4 times
Mall - voted 1 times