Locate readings across three axes

Pressure readings in kPa are arranged with axes representing experiment, time, and sensor, in that order. The code uses the default reshape order. Find the readings returned by p[1, 0, 2] and p[0, -1, -1]. Enter each answer in kPa, to zero decimal places.


Python
import numpy as np
p = np.arange(120, 144).reshape(2, 3, 4)
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More NumPy Questions: