Re: [Tutor] Error checking - very basic question

2005-09-25 Thread Liam Clarke
D] > Sent: Sunday, September 25, 2005 12:10 PM > To: Garry Rowberry; Python Tutor Mailing List > Subject: Re: [Tutor] Error checking - very basic question > > Hi Garry, > dau_version = None > while dau_version not in ("2.8", "2

Re: [Tutor] Error checking - very basic question

2005-09-25 Thread Liam Clarke
Hi Garry, dau_version = None while dau_version not in ("2.8", "2.1"): dau_version = raw_input("\n\tIs the DAU a version 2.1 or 2.8, please enter only 2.1 or 2.8 ") print"\n\t\aError! - please enter only 2.1 or 2.8." el

Re: [Tutor] Error checking - very basic question

2005-09-25 Thread Andrei
Garry Rowberry wrote: > def ask_dau_version(): > """Determine the product issue of the DAU.""" > dau_version = None > while dau_version not in ("2.8", "2.1"): > dau_version = raw_input("\n\tIs the DAU a version 2.1 or 2.8, please > enter only 2.1 or 2.8 ") > print"\n\t\a