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

Python Python Collections (Retired) Slices Slice Functions

Function first_4

guyz I could use some help over here since im rather new but this whole thing seems correct to me but i keep receiving an error Where's the 'first_4()' Any thoughts??

my code so far is:

def fisrt_4(iterable): return iterable[:4]

slices.py
def fisrt_4(iterable):
    return iterable[:4]

1 Answer

Just a little typo.

You misspelled first_4 as fisrt_4.

Just fix that and you should be good to go :)

Good luck! ~alex

lol i just realize it :P Such a noob i am!

No problem.

You don't need to worry; you just need to pay closer attention when programming.

It happens to all of us :)