DeadMarshall / codecademy

codecademy courses
0 stars 0 forks source link

Redundant if statement #3

Closed sen1 closed 6 years ago

sen1 commented 6 years ago

https://github.com/DeadMarshall/codecademy/blob/6f67a46034f5b5584c9f0e26fd028b57f73e80b6/bstinsonMurder%2BMystery.py#L171-L174

If the first check on i not in frequency_table fails then obviously i in frequency_table is true. So the second check is redundant. You can simply replace with else.

DeadMarshall commented 6 years ago

fixed