diff --git a/curriculum/challenges/english/08-data-analysis-with-python/numpy/basics-of-numpy.md b/curriculum/challenges/english/08-data-analysis-with-python/numpy/basics-of-numpy.md index 2197f92ceb..76aa07faf5 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/numpy/basics-of-numpy.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/numpy/basics-of-numpy.md @@ -18,25 +18,25 @@ print(b) ## --answers-- -```python +
[[1.0 2.0 3.0] [3.0 4.0 5.0]] -``` +--- -```python +
[[1. 2. 3.] [3. 4. 5.]] -``` +--- -```python +
[[1. 3.] [2. 4.] [3. 5.] -``` +## --video-solution-- diff --git a/curriculum/challenges/english/08-data-analysis-with-python/numpy/initialize-array-problem.md b/curriculum/challenges/english/08-data-analysis-with-python/numpy/initialize-array-problem.md index 5f13ab215d..4d07a891eb 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/numpy/initialize-array-problem.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/numpy/initialize-array-problem.md @@ -11,7 +11,7 @@ videoId: 0jGfH8BPfOk What is another way to produce the following array? -```py +
[[0. 0. 0. 0. 0. 0. 0.] [0. 1. 1. 1. 1. 1. 0.] [0. 1. 1. 1. 1. 1. 0.] @@ -19,7 +19,7 @@ What is another way to produce the following array? [0. 1. 1. 1. 1. 1. 0.] [0. 1. 1. 1. 1. 1. 0.] [0. 0. 0. 0. 0. 0. 0.]] -``` +## --answers-- diff --git a/curriculum/challenges/english/08-data-analysis-with-python/numpy/initializing-different-arrays.md b/curriculum/challenges/english/08-data-analysis-with-python/numpy/initializing-different-arrays.md index 6603b6a358..5dd3838530 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/numpy/initializing-different-arrays.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/numpy/initializing-different-arrays.md @@ -19,23 +19,23 @@ print(np.full_like(a, 100)) ## --answers-- -```py +
[[100 100 100 100 100]] -``` +--- -```py +
[[100 100 100 100 100] [100 100 100 100 100]] -``` +--- -```py +
[[ 1 2 3 4 5] [ 6 7 20 9 10]] -``` +## --video-solution-- diff --git a/curriculum/challenges/english/08-data-analysis-with-python/numpy/loading-data-and-advanced-indexing.md b/curriculum/challenges/english/08-data-analysis-with-python/numpy/loading-data-and-advanced-indexing.md index a4bf7ccce4..05a250f25f 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/numpy/loading-data-and-advanced-indexing.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/numpy/loading-data-and-advanced-indexing.md @@ -11,16 +11,16 @@ videoId: tUdBZ7pF8Jg Given a file named `data.txt` with these contents: -``` +
29,97,32,100,45 15,88,5,75,22 -``` +What code would produce the following array? -```py +
[29. 32. 45. 15. 5. 22.] -``` +## --answers-- diff --git a/curriculum/challenges/english/08-data-analysis-with-python/numpy/reorganizing-arrays.md b/curriculum/challenges/english/08-data-analysis-with-python/numpy/reorganizing-arrays.md index 082efe9adb..f082e58870 100644 --- a/curriculum/challenges/english/08-data-analysis-with-python/numpy/reorganizing-arrays.md +++ b/curriculum/challenges/english/08-data-analysis-with-python/numpy/reorganizing-arrays.md @@ -11,12 +11,12 @@ videoId: VNWAQbEM-C8 What code would produce the following array? -```py +
[[1. 1.] [1. 1.] [1. 1.] [1. 1.]] -``` +## --answers--