liamcohagan21 / pwp-capstones

0 stars 0 forks source link

Minor tweak to build_frequency_table #4

Open navierula opened 6 years ago

navierula commented 6 years ago
        for word in corpus:
            if word not in frequency_table:
                frequency_table[word] = 1
            else:
                frequency_table[word] += 1

Remember, we want to update the count of the word in the dictionary. Otherwise, looks good and you did a great job!