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 trialSplotch_ P
2,984 PointsNew. I still dont know
plz help
def first_4(x):
new_x = x.copy()
return new_x[:4]
def first_and_last_4(x):
new_x = x[:4]
other_x = x[-4:]
result= new_x.append(other_x)
return result
1 Answer
Splotch_ P
2,984 PointsYes my man, I actually figured this thing out after viewing somebody elses question about the same challenge. I over complicate things sometimes. Something im constantly working on...Simplifying. Thank you for responding.
Cheers, T
Eric M
11,546 PointsEric M
11,546 PointsHi Theodore, I responded to your other thread about this problem. Glad to see you've ditched the unnecessary
copy()
's in the second function.