3.3 - Creating Arrays in NumPy
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
What is the command to create a 1D array containing elements 5, 6, 7?
💡 Hint: Look for how we created arrays earlier.
How would you define an array?
💡 Hint: Think about what NumPy arrays represent.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What function is used to create a NumPy array?
💡 Hint: Remember the prefix used with NumPy functions.
True or False: A 2D NumPy array can represent a matrix.
💡 Hint: Consider the arrangement of numbers.
Get performance evaluation
Challenge Problems
Push your limits with advanced challenges
You have two arrays, a = np.array([2, 4, 6]) and b = np.array([1, 3, 5]). Write a code snippet to find their dot product.
💡 Hint: Remember how to perform element-wise multiplication.
Create a 4x4 identity matrix using NumPy and explain its significance.
💡 Hint: Think about the role of identity in matrix equations.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.