Adding to a string is a slow and inefficient operation because strings are immutable in python. It's a readable solution, yes, but scale this up far enough and operation time is going to be high. It's far more efficient to create a list of strings and join them.
Adding to a string is a slow and inefficient operation because strings are immutable in python. It's a readable solution, yes, but scale this up far enough and operation time is going to be high. It's far more efficient to create a list of strings and join them.
most readable, least overwrought... the folks who don't like this are clutching pearls imo. good work.
This comment is hidden because it contains spoiler information about the solution
this is good
This comment is hidden because it contains spoiler information about the solution
love that you are using camel case lol
smart to just add the letter tather than putting it in an else statement!