Write an expansion function that will take an input string like 1..5,8,11..14,18,20,26..30 and will print 1,2,3,4,5,8,11,12,13,14,18,20,26,27,28,29,30

Question:

Write an expansion function that will take an input string like

"1..5,8,11..14,18,20,26..30" and will print

"1,2,3,4,5,8,11,12,13,14,18,20,26,27,28,29,30"

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: