sample = 'root pts/3 100.121.17.73 Tue Aug 7 14:22 - 14:23 (00:00) '
# split the string on space characters
data = sample.split(' ')
# inspect our list in console, the list should now contain mix of words and spaces (empty string)
print(data)
# since empty string evaluates to False in Python, we can remove them like this from our list with filter function
data = filter(lambda x: x, data)
# outputs: ['root', 'pts/3', '100.121.17.73', 'Tue', 'Aug', '7', '14:22', '-', '14:23', '(00:00)']
print(data)
# in the end we collect relevant data by slicing the list
# from index 3rd to 6th and join them into one string with that data separated by one space in-between.
result = ' '.join(data[3:6])
# outputs: Tue Aug 7
print(result)