You can use this assignment in your class!
Mastery Progress(100.0%)
i

Collections in Python Assignment

You answeredJUST NOW
Python
You passed all test cases!
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']

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchJAN 16, 2021, 6:55:04 PM
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
imgCollections in Python Presentation (pages 3, 4)

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?
Select one of the following options:
  • A.
  • B.
  • C.
  • D.
Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.