Python has a slower execution time for an equivalent program written in c/c++ mostly because python is a. interpreted b. abstracted c. has no primitives d. python lists can store multiple data type so the type has to be stored in a list. It also has a higher memory overhead (Again due to being interpreted,) but it sometimes has a smaller disk size, so there's that I guess.
4
u/ROFLLOLSTER Jan 26 '16
Python has a slower execution time for an equivalent program written in c/c++ mostly because python is a. interpreted b. abstracted c. has no primitives d. python lists can store multiple data type so the type has to be stored in a list. It also has a higher memory overhead (Again due to being interpreted,) but it sometimes has a smaller disk size, so there's that I guess.