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

They are anticipating specific lists but they don't specify them in the questions. Am I missing something?

Examples: task 2 only passes if the list is the string 'Oklahoma' (or, I guess 'ikiaioia') and task 3 only passes if the list returns [0,1,2,3,46,47,48,49], but nowhere are those input lists specified.

Am I missing text in the questions? And does this commonly happen in the challenges?

1 Answer

Dan Johnson
Dan Johnson
40,532 Points

This is intentional and typical of how you'd want to design. You'll want to build a function in such a way that you don't need to know the specifics of the data being passed in to work with it (e.g. the contents of the iterable).