Understanding Array Shapes and Dimensions
📖 Scenario: Imagine you work at a small bakery that tracks daily sales of different types of bread. You want to organize this sales data in arrays to better understand the shape and size of your data.
🎯 Goal: You will create arrays representing sales data, check their shapes and dimensions, and print these details to understand how data is structured in arrays.
📋 What You'll Learn
Create a 1D array with daily sales numbers
Create a 2D array with sales of different bread types over several days
Use variables to store array shapes and dimensions
Print the shape and dimension of each array
💡 Why This Matters
🌍 Real World
Arrays are used to store and organize data like sales, temperatures, or images in rows and columns.
💼 Career
Knowing array shapes and dimensions is essential for data scientists and analysts to prepare data for analysis and machine learning.
Progress0 / 4 steps