Nov 20, 2023
Where do you get this idea that Python has the speed of C?!
All the literature, as well as my personal experience, shows that pure Python is at least 3 to 30 times slower than C code, if not more.
Of course, if you use a library written in C or C++ like numpy, you will get C-like speeds for the library, but Python itself is dog-slow.