November 2018
— !offtopic
Lol a guy asked how to iterate through the lines of a string in python and people suggested to use huge functions,other libs etc when at the same time there is
for line in string.split('\n')
— Hah. What did they suggest?
— Https://stackoverflow.com/questions/3054604/iterate-over-the-lines-of-a-string
— I mean, as I see it can be done without any libs and if you need to skip the line just skip the nth member of the array
Message permanent page
— Why this is ot?
— Ah, apparently the asker only wants to iterate through the string once. Don't know why, but in that case, split() might not suitable for them :)
— Ahnn now I see -.-
— What’s with the offtopic trend
— Anyone from Germany
— What do you mean?