numpy-100 icon indicating copy to clipboard operation
numpy-100 copied to clipboard

Alternative solution to q4, Use Z.nbytes to find the memory size directly.

Open DRaz1r opened this issue 11 months ago • 1 comments

Scope

100_Numpy_exercises_with_hints_with_solutions.md 100_Numpy_exercises_with_solutions.md

Description

This pull request gives an alternative solution to q4. Z.nbytes is a built-in attribute of the NumPy array object, specifically designed to return the total number of bytes. It provides a concise and straightforward way to obtain the result.

DRaz1r avatar Jul 15 '23 05:07 DRaz1r

Thanks. All the md and notebook files are generated from the ktx files in sources. Could you make modify your patch?

rougier avatar Jul 19 '23 10:07 rougier