Joining split list into a list?

I'm afraid that your question is a little underspecified, as S. Lott comments, but it looks as if you just want to join all the strings together and then split where there are newlines - the following works for your example, and could be easily modified for other requirements: join('T', 'e', 's', 't', '\n', 'List', '\n').splitlines() 'Test', 'List'.

I'm afraid that your question is a little underspecified, as S. Lott comments, but it looks as if you just want to join all the strings together and then split where there are newlines - the following works for your example, and could be easily modified for other requirements: >>>> ''. Join('T', 'e', 's', 't', '\n', 'List', '\n').splitlines() 'Test', 'List'.

String joining is an amazing thing l = 'T', 'e', 's', 't', '\n', 'List', '\n' "". Join(l). Split('\n') Works by taking a "" string, creating a larger string by appending all of l to it giving "Test\nList\n".

Then splitting on end of line giving "Test", "List".

1 because splitting on '\n' is more explicit in this case than splitting with splitlines() – Joce Apr 19 at 15:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions