Sorry Lucy! I’ll try to fix these up.

 

From: Lucy Bain [mailto:notifications@github.com] 
Sent: Tuesday, 22 April 2014 10:52 AM
To: lbain/cs101
Cc: TracyMu
Subject: Re: [cs101] Lesson 4 Optional Problems 'Word Count' (#8)

 

In improving_the_index:

> +# Need to check that the URL isn't already in the array of URLs for that keyword.
> +
> +# Add an If statement to check.
> +
> +
> +def add_to_index(index, keyword, url):
> +    for entry in index:
> +        if entry[0] == keyword:
> +            if url in entry[1]:
> +                return
> +            else:
> +                entry[1].append(url)
> +            return
> +    # not found, add new keyword to index
> +    index.append([keyword, [url]])
> +

This file has been saved as top level. It should be at https://github.com/lbain/cs101/blob/master/Lesson_4_Problem_Set/05-Improving_The_Index/solutions.py. But I'm afraid you've already submitted this answer (you can see it at the previous link).

Please remove from commit. 

—
Reply to this email directly or view it on GitHub <https://github.com/lbain/cs101/pull/8/files#r11833991> .Image removed by sender.