feat (advanced) : add NumPy array operations and math functions tutorial #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR adds a beginner-friendly NumPy tutorial script under advanced/.
It demonstrates array creation, element-wise operations, and mathematical functions.
Contributes to: Advanced Issues -> Machine Learning & AI -> NumPy tutorials.
Brief description of changes made.
file changes are - advanced/numpy_tutorial.py
🎃 Hacktoberfest 2025
🎯 Type of Change
📋 Difficulty Level
✅ Checklist
🧪 Testing
Describe how you tested your changes.
Manually tested locally on Linux with Python 3:
Ran the script: python3 advanced/numpy_tutorial.py and verified printed outputs for array shapes, indexing, arithmetic, dot product, broadcasting, reshape, statistics, unique/sort, random array reproducibility (seeded), and comparisons.
Verified the try/except block demonstrates an invalid-axis error and the script continues without crashing.
📸 Screenshots (if applicable)
no screenshots included
Add screenshots to help explain your changes.
📎 Additional Notes
OS - Kali LInux
File added: advanced/numpy_tutorial.py
Branch used: feat/numpy
Commit message used: feat: add NumPy array operations tutorial
The script intentionally keeps a student-like tone (light comments and a small purposeful quirk) to fit the repo’s educational style.
Any additional information about this PR.
If maintainers prefer a different filename or folder placement, I can rename/move the file as requested.