0

When learning python basics from Kaggle scripts i encountered such code:

NL_1 = [elem.split("\n") for elem in Name_list]

Where Name_list is list of character objects - names of people in titanic dataset.

I know what does it do, but still i feel quite lost with this syntax. My question is: what is the name of this concept and optionally what else should i learn to understand it.

cchamberlain
  • 14,693
  • 6
  • 52
  • 67
cure
  • 405
  • 2
  • 11
  • 1
    This was actually a simple question, and should have been answered. He/she asked : name of the concept. It's a bit difficult to search for an answer when you don't even know what to search for. – imranal Jun 04 '16 at 09:54
  • 3
    @imranal I don't think closing it as a duplicate necessarily means "you should have searched for this". Now, there is a link to the answer with detailed explanation. – ayhan Jun 04 '16 at 09:59
  • 2
    Thanks for support. Still - i got an answer, even if it was provided in quite a hard way. And thats true, it is hard to find answer when you do not know what to look for. – cure Jun 04 '16 at 09:59

0 Answers0