The for ... in ... loop is not necessarily the fastest, or at least not anymore. According to this benchmarkCounter was the slowest in python2, but was optimized in python3 to be significantly faster.
Lead Data Engineer with 3+ years of comprehensive experience in Google Cloud Platform with an in-depth understanding of large-scale data, data warehouses, data modeling, data pipelines, and data strea
The
for ... in ...
loop is not necessarily the fastest, or at least not anymore. According to this benchmarkCounter
was the slowest in python2, but was optimized in python3 to be significantly faster.Ohh, didn't knew this before. Thanks for sharing..