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

You answeredJUST NOW
Python
You passed all test cases!
STDIN
cat 2 a
Expected STDOUT
True
Your STDOUT
True
STDIN
cat 1 a
Expected STDOUT
False
Your STDOUT
False
STDIN
1234 4 4
Expected STDOUT
True
Your STDOUT
True
STDIN
1234 4 5
Expected STDOUT
False
Your STDOUT
False
STDIN
1234 -1 1
Expected STDOUT
False
Your STDOUT
False
STDIN
apple 1 a
Expected STDOUT
True
Your STDOUT
True
STDIN
apple 0 a
Expected STDOUT
False
Your STDOUT
False
STDIN
aaa -1 a
Expected STDOUT
False
Your STDOUT
False

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Instructor Alec KretchJAN. 2, 2021 AT 5:59 PMstarTop Answer
Python

Was this helpful?

(Voting helps us personalize your learning experience!)
imgStrings in Python Presentation (page 2)

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.