Update BASIC.ipynb

This commit is contained in:
Peter Norvig 2024-04-17 17:09:35 -07:00 committed by GitHub
parent 4db4e41ab8
commit b7366db896
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -202,10 +202,6 @@
" if constraint is None or (top == constraint) or (callable(constraint) and constraint(top)):\n",
" return tokens.pop(0)\n",
"\n",
"def remove_spaces(line): \n",
" \"Remove white space from line, except space inside double quotes.\"\n",
" return \n",
"\n",
"def lines(text): \n",
" \"A list of the non-empty lines in a text.\"\n",
" return [line for line in text.splitlines() if line]"