Did you know it takes about 17,000 CPU instructions to print(“Hello”) in Python? And that it takes ~2 billion of them to import a module?
Did you know it takes about 17,000 CPU instructions to print(“Hello”) in Python? And that it takes ~2 billion of them to import a module?
Just remember that an optimized C program will run about 100x faster then a similar Python program in a compute bound problem. So yes Python is slow but often good enough.