Python Tip:
Concatenating strings with += in a loop has a complexity of O(n²), because a new string is created with each addition.
Use join() — it gives O(n).
👉 @DataScience4
Post #8997
1.82K

- ❤ 3
- 👍 3
LE Learn Python Coding @pythonre · 40.8K subscribers 