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
orange banana GRAPE apple
2
strawberry
Expected STDOUT
['orange', 'banana', 'GRAPE', 'apple']
Your STDOUT
['orange', 'banana', 'GRAPE', 'apple']
STDIN
orange banana GRAPE apple
4
strawberry
Expected STDOUT
['orange', 'banana', 'GRAPE', 'apple']
Your STDOUT
['orange', 'banana', 'GRAPE', 'apple']
STDIN
orange banana GRAPE apple
1
strawberry
Expected STDOUT
['orange', 'strawberry', 'GRAPE', 'apple']
Your STDOUT
['orange', 'strawberry', 'GRAPE', 'apple']
STDIN
orange banana GRAPE apple
-1
strawberry
Expected STDOUT
['orange', 'banana', 'GRAPE', 'apple']
Your STDOUT
['orange', 'banana', 'GRAPE', 'apple']
STDIN
1 2 3 4 5
2
2222
Expected STDOUT
['1', '2', '2222', '4', '5']
Your STDOUT
['1', '2', '2222', '4', '5']

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchJAN 19, 2021, 11:24:43 AM
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.
  • E.
Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

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