Mike Nickey wrote:
Hey all,

I'm trying to write a def that has a check to see if the entered information is 
within a pre-determined valid set.
Below is what I have so far but it doesn't seem to be working properly.
What I want is to have the user be able to enter 1 through 8 and have the information pass fine but anything else would cause the user to repeat the process. I'm using a while loop to try to do this. The only other thing I can think of to do is incorporate a list and see if I can check the list to complete this.

You convert the user's response into an integer, but don't do anything with it: it just gets immediately thrown away. Change the line:

int(UserSkillLvl)

to

UserSkillLvl = int(UserSkillLvl)


--
Steven
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to