6. Count how many words occur in a list up to and including the first occurrence of the word “sam”. (Write your unit tes
Posted: Sun Jul 03, 2022 11:22 am
6. Count how many words occur in a list up to and including thefirst occurrence
of the word “sam”. (Write your unit tests for this case too.What if “sam” does
not occur?)
of the word “sam”. (Write your unit tests for this case too.What if “sam” does
not occur?)