Why does Python code run faster in a function? Why does Python code run faster in a function? python python