🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 10: Listing Price Grid

Data Engineer

Builds on these lessons

Current Task

Objective

.shape returns a tuple with the array's size along each dimension — the first way to sanity-check any array you didn't create yourself.

Task: create a 2D array of listing price/bedroom pairs and print its shape.

index.py
import numpy as np listings = np.array([[250000, 3], [340000, 4], [180000, 2]]) print(listings.shape)

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview