Week 3

NumPy Essentials

Arrays, vectorized operations, shapes, indexing, and numerical thinking.

Learning goals

Suggested classroom flow

SessionFocusOutput
Day 1Concept introduction and guided examplesNotebook or script
Day 2Hands-on lab and teacher walkthroughWorking code
Day 3Practice tasks and discussionAssignment draft
Day 4Assessment and mini projectSubmission

Mini project

Array Lab Visual Notes

Outcome for the week: students should finish with usable code, a short explanation, and at least one visual or result artifact.

Quick MCQ preview

Q1. NumPy is mainly used for?

Explanation: NumPy is a numerical computing library.

Q2. Which attribute gives array dimensions?

Explanation: shape returns dimensions.

Q3. Vectorized operations are usually?

Explanation: Vectorization is usually faster.