You are viewing a single comment's thread. Return to all comments →
This is not my code, but I can comment on that.
It is to print the results as strings in separate lines.
Without it, the results would be like ['Harry', 'Berry'].
'\n' part is to print each name in a new line. This is just the way of python to print a list as strings :)
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
This is not my code, but I can comment on that.
It is to print the results as strings in separate lines.
Without it, the results would be like ['Harry', 'Berry'].
'\n' part is to print each name in a new line. This is just the way of python to print a list as strings :)