Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Data Science Foundations) expand_more
Data Science Foundations / Workflow & Data

Target variable

Learn Target variable in Data Science Foundations with a focused explanation, a topic-specific example, edge guidance, and a mastery check.

12 min read • Beginner
data-science-003.py
python
records=[{"rooms":3,"area":1400,"price":18.5},{"rooms":4,"area":1900,"price":26.0}]
y=[r["price"] for r in records]
print("target:",y)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content