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

Unit 3: Types - Review 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 KretchNOV 17, 2022, 5:09:36 PM
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
img3.2 Strings - Lesson

Was this helpful?

(Voting helps us personalize your learning experience!)
img3.3 Lists - Lesson

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.