4 ms·
Numbers in python also allocate memory. Integers are arbitrary precision, so the difference between + and += might also be very relevant for them. And of course
by c-cube 5y ago
Numbers in python also allocate memory. Integers are arbitrary precision, so the difference between + and += might also be very relevant for them. And of course there's numpy and matrices which also behave like numbers, or at least like mathematical objects.