FAQ: Introduction to NumPy - Selecting Elements from a 1-D Array

This community-built FAQ covers the “Selecting Elements from a 1-D Array” exercise from the lesson “Introduction to NumPy”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Data Science

Introduction to Statistics with NumPy

FAQs on the exercise Selecting Elements from a 1-D Array

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

in this exercise , we’re asked to select scores of two students and to save them in an array named manual_adwoa_test_1 , I’ve typed manual_adwoa_test_1 = test_1[1:3] , and the task box didn’t turn green until I’ve had it changed into manual_adwoa_test_1 = np.array([test_1[1], test_1[2]]). So why is that, knowing that by printing the output of both statements I’ve got the same thing : [98 44]?

Just want to point out that the name is Manuel not Manual

https://www.codecademy.com/paths/analyze-data-with-python/tracks/ida-3-introduction-to-numpy/modules/ida-3-1-numpy-syntax/lessons/numpy-introduction/exercises/selecting-elements-1d
How can jeremy_test_2 be a variable and manual_adwoa_test_1 be an array?