We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This worked first try. Thought I would share because so many seemed to be having issues. I've been in the habit of always using raw_input().strip() or input().strip() (Python 3). It saves you many headaches trying to figure out non-printable characters.
I didn't bother with a map statement. Probably could have wrapped it in a try block, but it still passes. :)
Lists
You are viewing a single comment's thread. Return to all comments →
This worked first try. Thought I would share because so many seemed to be having issues. I've been in the habit of always using
raw_input().strip()
orinput().strip()
(Python 3). It saves you many headaches trying to figure out non-printable characters.I didn't bother with a map statement. Probably could have wrapped it in a
try
block, but it still passes. :)