Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    \$\begingroup\$ Why not simply take input and return output as lists? \$\endgroup\$ Commented Nov 22, 2021 at 10:04
  • \$\begingroup\$ What do you mean ? \$\endgroup\$ Commented Nov 22, 2021 at 12:05
  • 4
    \$\begingroup\$ Your problem seems to be stemming from getting a list in text form, and wanting to return a list as text form, but according to default I/O rules, you can write a function that deals with actual lists. \$\endgroup\$ Commented Nov 22, 2021 at 12:17