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

Strings in Python Assignment

You answeredJUST NOW
Python
You passed all test cases!
STDIN
5 5 5 5 5 5 5 5
Expected STDOUT
5555-5555
Your STDOUT
5555-5555
STDIN
1 2 3 4 5 6 7 8 9 0
Expected STDOUT
(123) 456-7890
Your STDOUT
(123) 456-7890
STDIN
1 2 3 4 5 6 7 8 9 0 1
Expected STDOUT
1 (234) 567-8901
Your STDOUT
1 (234) 567-8901
STDIN
1 2 3
Expected STDOUT
123
Your STDOUT
123
STDIN
0
Expected STDOUT
0
Your STDOUT
0
STDIN
5 5 5 8 6 7 5 3 0 9
Expected STDOUT
(555) 867-5309
Your STDOUT
(555) 867-5309
STDIN
1 5 1 5 2 4 9 0
Expected STDOUT
1515-2490
Your STDOUT
1515-2490

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchDEC 15, 2020, 3:58:44 AM
Python

Was this helpful?

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

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.