Open main menu

CDOT Wiki β

Changes

OPS435 Python Exercise 1

184 bytes added, 21:10, 21 June 2018
Split a single line into words and store all the words in a list
print(word_list) # <-- you should see the list of word when this line is executed
</pre>
Output from the above print() function:
<pre>
['rchan', 'pts/9', '10.40.91.236', 'Tue', 'Feb', '13', '16:53:42', '2018', '-', 'Tue', 'Feb', '13', '16:57:02', '2018', '(00:03)']
</pre>
1,760
edits