SkyAICampus
HomePracticeLearnCode LabFocus

Learn

HomePracticeConcept cardsCode LabSky Tutor

Review

Revise todayMistake notebookProgress

Focus

Campus ForestFocus roomsSquads

Questions or feedback?
support@skyaicampus.com

Keyboard shortcuts

  • Choose an answer1–4 or A–D
  • Check, then next questionEnter
  • Next hintH
  • Search cardsCtrl K

How this quiz adapts

3 fast right answers in a row: the next questions get harder. 2 wrong in a row: a little easier.

Hints and guesses still count, just a little less, so use them whenever you're stuck.

Sky Tutor

Stuck on an idea? Ask in your own words, or by voice.

Ask Sky Tutor
SkyAICampus
PrivacyTermssupport@skyaicampus.com© 2026 SkyAI Campus

New skill. A one-minute read first, then the question.

60-second card

Maths on whole arrays

Maths on an array works on every value at once, with no loop needed.

  • a * 2 doubles every value.
  • a + b adds matching positions of two arrays of the same shape.
  • np.sqrt(a) and np.round(a, 1) work on every value too.
import numpy as np
a = np.array([1, 2, 3])
b = np.array([10, 20, 30])
print((a * 2).tolist(), (a + b).tolist(), int(a @ b))

Prints

[2, 4, 6] [11, 22, 33] 140

Remember: No for loops: let NumPy do the whole array.

Common mistake: Expecting a * b to be matrix multiplication. It multiplies position by position; use @ for matrices.

Log inSign up