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 trialBenjamin Guyton
6,858 PointsTypeError: None type object is not iterable
My code looks exactly as Kenneth's does, yet I'm getting an error for line 52 of my code: monster, door, player = get_locations()
Ive never seen this error before, and I dont know what to change to get it to run.
Help please
Benjamin Guyton
6,858 PointsHere's my snapshot, I appreciate the help.
1 Answer
Steven Parker
231,275 PointsIt doesn't quite look exactly the same....
On line 25, there should be a "return" in front of the call to random.sample.
Also, while not related to your question, it looks like there are missing parentheses after "upper" on line 61.
Steven Parker
231,275 PointsSteven Parker
231,275 PointsPlease show your code (with formatting), or even better, make a snapshot of your workspace and post the link to it here.