I have a list:
grades= ['doe john 100 90 80 90', 'miller sally 70 90 60 100 80', 'smith jakob 45 55 50 58', 'white jack 85 95 65 80 75']
I want to be able to break that list so the output would be:
['doe john 100 90 80 90']
['miller sally 70 90 60 100 80']
['smith jakob 45 55 50 58']
['white jack 85 95 65 80 75']
Additionally, I would like to split the elements in the list so it looks like:
['doe', 'john', '100', '90', '80', '90']
['miller', 'sally', '70', '90', '60', '100', '80']
['smith', 'jakob', '45', '55', '50', '58']
['white', 'jack', '85', '95', '65', '80', '75']
I'm not really sure how to go about doing this or if this is even possible as I'm just starting to learn python. Any ideas?