Skip to content

Commit 701a0c9

Browse files
committed
Add exercise assignment for Array creation
1 parent 3b3113d commit 701a0c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

numpy/array-creation/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Array creation
2+
3+
Start from a Python list containing both integers and floating point values,
4+
and construct then a NumPy array from the list.
5+
6+
Generate a 1D NumPy array containing all numbers from -2.0 to 2.0 with a
7+
spacing of 0.2. Use optional start and step arguments of the `np.arange()`
8+
function.
9+
10+
Generate another 1D NumPy array containing 11 equally spaced values between
11+
0.5 and 1.5. Extract every second element of the array.

0 commit comments

Comments
 (0)