Skip to content

Commit 5d806c7

Browse files
JostMigendaRobadob
andcommitted
clarify example description
Co-authored-by: Robert Chisholm <[email protected]>
1 parent 24d3715 commit 5d806c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

episodes/optimisation-using-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ It is often best to tell the interpreter/library at a high level *what you want*
105105

106106
A simple example of this is performing a linear search on a list. (Though as we’ll see in the next section, this isn't the most efficient approach!)
107107
In the following example, we create a list of 2500 random integers in the (inclusive-exclusive) range `[0, 5000)`.
108-
The goal is to count how many even numbers are in the list.
108+
The goal is to count how many unique even numbers are in the list.
109109

110110
The function `manualSearch()` manually iterates through the list (`ls`) and checks each individual item using Python code. On the other hand, `operatorSearch()` uses the `in` operator to perform each search, which allows CPython to implement the inner loop in its C back-end.
111111

0 commit comments

Comments
 (0)