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!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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!