You are viewing a single comment's thread. Return to all comments →
Good Evening! I was amazed at your succinct and easy solution to this problem. I am currently getting my feet wet in Python and have been using Hackerrank in order to improve my familiarity with it along with its online documentation.
I main question is this: How did you know that you could use
I have scoured programiz.com and Stack Overflow for ideas on handling this problem, but this technique never came up.
Any lead on becoming a better python programmer would be greatly appreciated!
Realized that I never put the answer to my own question here in case someone else was curious about the same thing.
This technique is covered in the Python documentation. Although, it's not covered in the Print Methods or String section of the documentation, it is in the Built-in Types Section.
Have been reading this section and learning a lot; hopefully it will be as useful for the rest of the programming enthusiasts out there!