Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DRaz1r
Copy link

@DRaz1r DRaz1r commented Jul 15, 2023

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.

Alternative solution to q4, Use Z.nbytes to find the memory size directly.
Alternative solution to q4, Use Z.nbytes to find the memory size directly.
@rougier
Copy link
Owner

rougier commented Jul 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants