Optimizing Python list: Stop using “+=”
Python isin’t one of the fastest languages out there and making a lot of mistakes making it slower isin’t the best out of it, so how could you avoid it and keep the code fast? So, why is like so? # Using += with lists result = [] for i in range(10): result += [i] … Read more