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 trialCarter Ellis
1,323 PointsI'm not really sure how to do this correctly. Sorry, having an off day.
I tried using .pop, which i though I was using correctly, but I screwed it up so hard not even treehouse knew what to tell me. "Bummer: Try again!"
best = [ "a" , "b" , "c"]
best.extend(["d" , "e"])
best.insert(["start"])[0]
1 Answer
Steven Parker
231,269 PointsI tried this and got a bit more helpful error message: "Bummer: TypeError: insert() takes exactly 2 arguments (1 given)"
And here's a few more hints:
- your 2nd argument needs to be inside the parentheses
- the index should be the first argument to "insert"
- neither argument should be in a list