diff --git a/ch02/01_main-chapter-code/ch02.ipynb b/ch02/01_main-chapter-code/ch02.ipynb index 13299c0..a5e5b12 100644 --- a/ch02/01_main-chapter-code/ch02.ipynb +++ b/ch02/01_main-chapter-code/ch02.ipynb @@ -182,7 +182,7 @@ ], "source": [ "# Strip whitespace from each item and then filter out any empty strings.\n", - "result = [item.strip() for item in result if item.strip()]\n", + "result = [item for item in result if item.strip()]\n", "print(result)" ] },