I have a problem where I need to find the amount of letters are in a string. My code (somewhat) works as it can detect if a letter is in the word. However, it can only write one. For example, if I input "Word" as the word and "O" as the letter, it detects that word has 1 "o". However, if I input "Woord", and "O" as the letter, it repeats the loop and doesn't output anything.
stop = True
while stop:
word = raw_input ("Give me a word! ")
letter = raw_input ("Give me a letter! ")
count = word.find(letter)
if count == -1:
print "The letter,",letter,"is found in the word,",word,"0 times."
print "Please try again!"
count = 0
if count >= 1:
print "The letter,",letter,"is found in the word,",word,count,"times."
stop = False