> def check_range(myrange):
>         if range(myrange) != range(10,89):
>                 return "False"
>         else:
>                 return "True"

For this to work out, the user's input would have to be a giant string
containing 10, 11, 12, 13, etc.

Unless I mistunderstood your requirements, what you're probably looking for is:

if myrange in range(10,90):  # "in" is the key word here
    return True
else
    return False

_______________________________________________
Tutor maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to