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

Project 3: Meal Calories Lookup

Data Analyst

Builds on these lessons

Current Task

Objective

A Series can have a custom index instead of default integers, letting you look up values by a meaningful label.

Task: create a calories Series indexed by meal name, then print the lunch value and the full Series.

index.py
import pandas as pd calories = pd.Series([300, 450, 200], index=['breakfast', 'lunch', 'dinner']) print(calories['lunch']) print(calories)

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

Live Preview
🖼️

Verify your code to see the preview