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
Austin March
2,310 PointsTrying to do nested try loops for a correct input.
testguess.py is what you want: https://w.trhou.se/7uw3mikji3
Basically what I'm doing is making a random number guesser, and i have the actual guess part working fine, but im really having trouble with the try loops. They are supposed to make sure that the range of numbers the user enters arn't illogical for the guesser system i have. the numbers have to be in smallest, greatest format, but also cant be anything BUT integers, otherwise ill get a nasty error later. Thanks, -Austin
Edit: Could i just use 3 functions instead and just pass the values in to check them 1 by 1? I dunno if that will work but I'm just throwing out ideas.