basic elements

Create a 3-by-3 array containing the even integers from 2 through 18. Create a second 3-by-3 array containing the integers from 9 down to 1, then multiply the first array by the second.

Python Question # 1: (Filling arrays) Fill a 2-by-3 array with ones, a 3-by-3 array with zeros and a 2- by-5 array with 7s. Question # 2: (Broadcasting) Use arange to create a 2-by-2 array containing the numbers 0–3. Use broadcasting to perform each of the following operations on the original array: a) Cube every […]

Scroll to top