3 ms·Replacing str(i) with the f-string f'{i}' lets it run about 2x faster.by erdewit 6y agoReplacing str(i) with the f-string f'{i}' lets it run about 2x faster.