You answeredJUST NOW
Python
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
Instructor solution
Strings in Python Presentation (page 6)
By Alec Kretch (Aug 15, 2023)
You may exit out of this review and return later without penalty.