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 trialAlec Burmeister
1,627 PointsLists 2 quiz... length
So I finished all of the course, but I skipped this quiz cause I didn't know the right answer.
Find the length of the list below.
__________ ([1, 2, 3])
3
What I put in the blank is: len([1, 2, 3]) I put this in an IDE and got 3 an the output. Why is this not working in the quiz?
2 Answers
Gunhoo Yoon
5,027 PointsDid you put only 'len'? that's the correct answer. If you put len([1, 2, 3])
, it is not correct because the quiz fills ([1, 2, 3]) part for you.
Maxwell Hunter
Python Web Development Techdegree Graduate 29,640 Points"len" is definitely the correct answer, the questions can be tricky - make sure to read the whole question, and only fill in the parts they ask for.
Alec Burmeister
1,627 PointsAlec Burmeister
1,627 Pointsoh... jeez. haha that's a little confusing then. I thought they were just showing the list they wanted there.
I put len([....]) Thanks for clarifying!