Update BASIC.ipynb
This commit is contained in:
@@ -202,10 +202,6 @@
|
|||||||
" if constraint is None or (top == constraint) or (callable(constraint) and constraint(top)):\n",
|
" if constraint is None or (top == constraint) or (callable(constraint) and constraint(top)):\n",
|
||||||
" return tokens.pop(0)\n",
|
" return tokens.pop(0)\n",
|
||||||
"\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",
|
"def lines(text): \n",
|
||||||
" \"A list of the non-empty lines in a text.\"\n",
|
" \"A list of the non-empty lines in a text.\"\n",
|
||||||
" return [line for line in text.splitlines() if line]"
|
" return [line for line in text.splitlines() if line]"
|
||||||
|
|||||||
Reference in New Issue
Block a user