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 trialSagar Thakkar
8,814 PointsWhats wrong in it please help
please help
best = ["Money", "Home", "Car"]
best = best.extend("Sweet Wife")
best.append("Bright Childrens")
1 Answer
Erdem Meral
25,022 PointsSagar, Let me start with your mistake: You should use extend like :
best.extend("a")
When you write best.extend("Sweet Wife")
each letter in that string becomes a list member.
Answer:
In challenge 1, you only need to create a list with 3 items.
In challenge 2, you need to add 2 more items to the list.
In challenge 3, you need to insert the string "start" to the index 0
best = [1,2,3] #Challenge 1
best.append(4) #Challenge 2
best.append(5) #Challenge 2
best.insert(0,"start") #Challenge 3