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 trial
Umesh Sawant
2,130 PointsI am not able to proceed it from here.
Whats incorrect in below code.
I am getting error "Oops! It looks like Task 1 is no longer passing."
que : Using .extend(), .append(), or +, add two new items onto the end of best. Again, the items can be anything you want.
Solution:
best.extend('hi')
best.append('efg')
best += ('hel')
best.append('12')
1 Answer
Gabbie Metheny
33,778 PointsIt looks like you're on the Combining Lists challenge in Python Collections, is that correct?
If so, task 2 of the challenge asks you to add two items to the list using .extend(), .append() or +. With your attached code, you're only trying to add one item at a time, and you're trying four different things, which is probably what's causing the task to fail. I don't know what list you started with, but you can either add a list to a list using extend (so, add a new list of two items to your existing list of three items), or you can append items individually using append or +=. Just make sure you're adding exactly two items, whatever method you choose! If you're unable to pass the second task, would you mind pasting a formatted version of your existing code using the Markdown Cheatsheet?
Let me know how it goes!