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.
I'm trying to teach myself Python, and reading this question honestly made me want to give it up. I had no idea what was being asked or how to go about it. If you have the time could you give me an idea of your step by step process for coming to this solution, as far as you can remember? I generally understand what you've done here, but I want to know how to come to a similar conclusion when I encounter a similar problem.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
List Comprehensions
You are viewing a single comment's thread. Return to all comments →
I'm trying to teach myself Python, and reading this question honestly made me want to give it up. I had no idea what was being asked or how to go about it. If you have the time could you give me an idea of your step by step process for coming to this solution, as far as you can remember? I generally understand what you've done here, but I want to know how to come to a similar conclusion when I encounter a similar problem.