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 trialPrince Vonleh
Courses Plus Student 4,552 PointsOops! It looks like task 1 is no longer passing... def first_and_last_4(a): return a[:4]+a[-4:]
my answer to question 1 was: def first_4(a): return a[:4]
def first_and_last_4(a):
return a[:4]+a[-4:]
1 Answer
James Shi
8,942 PointsSubmit both functions instead of deleting the function from task 1.
Prince Vonleh
Courses Plus Student 4,552 PointsPrince Vonleh
Courses Plus Student 4,552 PointsIt worked! Thanks def first_4(a): return a[:4] def first_and_last_4(a): return a[:4]+a[-4:]