DEV Community

Discussion on: Do you think Python is overrated ?

Collapse
 
bekbrace profile image
Bek Brace • Edited

Totally, and even with this problem:
res = 0
for i in range(0, 100000000):
res = res + i

If you think you can fix it with list comprehension:
item = [n+1 for n in range(100000000)]

Then you're wrong, it's so slow

CAUTION Do not try that code, it will slow your system and will freeze the transistors even for some time!