C/C++ is relatively fast as compared to Python because when you run
the Python script, its interpreter will interpret the script
line by line and generate output but in C, the compiler will first compile it
and generate an output which is optimized with respect to the hardware and OS.
x=0
while x!=1000000:
x+=1
print(x)