The Fastest Way to Loop in Python - An Unfortunate Truth

hello and welcome i'm james murphy and today we're  going to be looking at what's the fastest way to   loop in python so just as an example task we're  going to loop through the numbers 0 to n minus 1   where n is going to be some big number like this  and just add them up you know something to do in   the loop which one do you think is faster using a  while loop or a for loop you can see in both cases   we're doing essentially the same work but one of  them is using a while l...
repotechsstarsweeklyforksweekly
arc53/DocsGPTPythonTypeScriptCSS11.7k+4.8k1.1k+364
Pythagora-io/gpt-pilotPythonOther9.5k+4k722+297
OpenBMB/ChatDevPythonJavaScriptCSS12.9k+2.7k1.3k+274
microsoft/autogenJupyter NotebookPythonOther8.1k+2.5k811+315
mit-han-lab/streaming-llmPython4.6k+2.2k234+115
krahets/hello-algoJavaSwiftC++38.2k+1.8k4.2k+203
novuhq/novuTypeScriptPythonJavaScript29.3k+1.5k2.5k+179
openai/openai-pythonPythonMakefile12.8k+1.3k1.8k+77
microsoft/promptflowPythonOther4.1k+1.1k273+49
KillianLucas/open-interpreterPython28.8k+9582.5k+93