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 trialAvernell Christopher Melikhov
Data Analysis Techdegree Graduate 13,878 PointsCan someone tell me where I am going wrong here? I just cant seem to get this guessing game to work
I cannot get the the counter guesses to store to the array attempts. All in all its not working as it should. Thank you
2 Answers
Steven Parker
231,261 PointsLine 32 contains return guesses
, right before the append statement.
The "return" causes the function (start_game) to end; and since it was called by the last line of the program, the program then exits.
Avernell Christopher Melikhov
Data Analysis Techdegree Graduate 13,878 PointsAfter each round, guesses+= should be added to attempts[]. For some reason this is not happening.....sorry I am very new to this.