Ad
  • Custom User Avatar

    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.