March 7th, 2013, 11:20 PM
I suggest you try experiments in the interpreter. It's not like you're sharing two punch card machines with crowds of students trying to meet tomorrow's deadline.
The result of split() will surprise you,
you'll see that looking for spaces in nlist is futile:
>>> 'add 23 88.2' . rstrip() . split()
['add', '23', '88.2']
There are other gems to uncover.
[/code] are essential for python code!