Create a NumPy Array from Python Lists
📖 Scenario: You work in a small bakery that tracks daily sales of different bread types. The sales data is recorded as Python lists for each day.You want to use NumPy to analyze this data more easily.
🎯 Goal: Create a NumPy array from the given Python lists of daily bread sales.
📋 What You'll Learn
Use the
np.array() function to convert Python lists into a NumPy array.Create the array exactly from the provided lists.
Print the resulting NumPy array.
💡 Why This Matters
🌍 Real World
In many jobs, data comes as lists or tables. Converting these into NumPy arrays helps with fast calculations and analysis.
💼 Career
Data scientists and analysts often convert raw data into arrays to prepare for statistical analysis, machine learning, or visualization.
Progress0 / 4 steps