Help with listing out number of times a word appears

This is one of the exercises I'm doing, this is the code I've written up:

http://pastebin.com/msNi4eE1

The output I get is 232 which is the total number of words rather than the word I'm looking for. Any help?

- Line 15 looks suspicious - do you want = or ==
- is wordcount ever initiated to zero?
- does fword ever change value?
- Line 15 looks suspicious - do you want = or ==
- is wordcount ever initiated to zero?
- does fword ever change value?


- It's meant to be '='
- I tried adding 'wordcount = 0' just before the for function and got the correct output, thanks a lot.
Topic archived. No new replies allowed.