I've written this usual fibonacci python code in python official idle;
def fib(n):
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()
fib(10000000)
When i increased n,like i did in exemple, in idle it've taken around 30s-60s to finish it, after this,
I saved the python file as fibo.py and I ve opened it on cmd by importing module after opening python in cmd with -py extension.
Even if you put a very big number n in cmd, the process ends in less than 2 seconds always. Its a very very very high speed, but this isn't same for python idle,
Any answer would be appriciated.