Why Does Python Code Run Faster in a Function?
stackoverflow.com