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

Using Coverage - Assertion

In the Using Coverage video Kenneth runs coverage and an error comes up saying 6 was not found in range(1, 6)... was this just a bug or did you find out the reason behind it?

2 Answers

Kenneth Love
STAFF
Kenneth Love
Treehouse Guest Teacher

That was from an earlier version of the code that made it into that video but was fixed in previous ones. I thought I had gotten them all!

Anyway, yeah, it's just a bug/typo on my behalf and doesn't impact the course or your use of coverage at all.

Chris Freeman
Chris Freeman
68,469 Points
range(1, 6)
# returns
[1, 2, 3, 4, 5]

See range() docs