Python: Split string into multiple lines using delimiter
You can solve it differently. My approach was: First split the input string by whitespaces and you will get a list Split the 3rd element of the list by , and get another list. within a loop, each time make a new copy of the splitted input and append to another list. Modify 3rd element … Read more