Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialuc
4,309 PointsWhat should I do?
Create a variable called "first_item" that contains the first item from the "grocery_list" array (index 0).
grocery_list = ["milk", "eggs", "bread", "ice cream", "potatoes", "pie"]
first_item[0] = "milk"
1 Answer
Dino Tudor
1,767 PointsYou should try this:
grocery_list = ["milk", "eggs", "bread", "ice cream", "potatoes", "pie"]
first_item = grocery_list[0]
uc
4,309 Pointsuc
4,309 PointsOk I guess I got it! :)