I have a question with Stdin.readlines, I'm not sure how it's used; for example I have this paragraph
Adventures in Disneyland Two blondes were going to Disneyland when They came to a fork in the road. The sign read: "Disneyland Left." SW they went home.
But when I print it, it looks like this:
['Adventures in DisneylandTwo blondes were going to Disneyland when they came to fork in the road. The sign read: "Disneyland Left." So they went home.\n', '\n']
My idea was that each word was separated as an element, but here an element is a phrase, My input is Mensaje=stdin.readlines()
, but I do not know how to use this very well, I tried to put a split()
or a strip()
but this throws me an attribute error.
Can someone explain to me how stdin.readlines()
works and what attributes do you have?
Thank you!