You answeredJUST NOW
Python
STDIN
a b c d e f
Expected STDOUT
['f', 'd', 'b', 'a', 'c', 'e']
Your STDOUT
['f', 'd', 'b', 'a', 'c', 'e']
STDIN
here is another list
Expected STDOUT
['list', 'is', 'here', 'another']
Your STDOUT
['list', 'is', 'here', 'another']
STDIN
4 3 5 2 6 1
Expected STDOUT
['1', '2', '3', '4', '5', '6']
Your STDOUT
['1', '2', '3', '4', '5', '6']
STDIN
I think therefore I am
Expected STDOUT
['I', 'think', 'I', 'therefore', 'am']
Your STDOUT
['I', 'think', 'I', 'therefore', 'am']
STDIN
elephants
Expected STDOUT
['elephants']
Your STDOUT
['elephants']
STDIN
pancakes waffles french toast scrambled eggs steak chicken sausage turkey bacon coffee orange juice maple syrup
Expected STDOUT
['syrup', 'juice', 'coffee', 'turkey', 'chicken', 'eggs', 'toast', 'waffles', 'pancakes', 'french', 'scrambled', 'steak', 'sausage', 'bacon', 'orange', 'maple']
Your STDOUT
['syrup', 'juice', 'coffee', 'turkey', 'chicken', 'eggs', 'toast', 'waffles', 'pancakes', 'french', 'scrambled', 'steak', 'sausage', 'bacon', 'orange', 'maple']
Instructor solution
Collections in Python Presentation (pages 3, 4)
By Alec Kretch (Aug 6, 2023)
You may exit out of this review and return later without penalty.