There is no difference between using single quotes and double quotes in Python
At each step, we declare an operation that will be applied to the entire input stream, like
rsplit to all lines of the input log file. Rather than take a huge memory to process a huge file.
The key is ‘think big’. Instead of focusing on the problem at a line-by-line level, you just break it down into big operations that operate on the whole file.
Returns a list of the words in the string, separated by the delimiter string (starting from right).
' a b c '.rsplit(None, 1)
[' a b', 'c']
' a b c '.rsplit(None, 2)
[' a', 'b', 'c']