That's nice. Thanks!
V
On Sun, Aug 23, 2009 at 5:02 PM, Dennis Lee Bieber wrote:
> On Sun, 23 Aug 2009 10:04:57 -0500, Victor Subervi
> declaimed the following in
> gmane.comp.python.general:
>
> > Hi;
> > I have the following:
> >
> > style = raw_input('What style is this? (1 = short, 2 = long)
Really slick! Thanks!
V
On Sun, Aug 23, 2009 at 11:08 AM, Albert Hopkins wrote:
> On Sun, 2009-08-23 at 16:36 +0100, MRAB wrote:
> > Victor Subervi wrote:
> > > Hi;
> > > I have the following:
> > >
> > > style = raw_input('What style is this? (1 = short, 2 = long): ')
> > > flag = 0
> > > while
On Sun, 2009-08-23 at 16:36 +0100, MRAB wrote:
> Victor Subervi wrote:
> > Hi;
> > I have the following:
> >
> > style = raw_input('What style is this? (1 = short, 2 = long): ')
> > flag = 0
> > while flag == 0:
> > if (style != 1) or (style != 2):
> > style = raw_input('There was a mistake.
Victor Subervi wrote:
Hi;
I have the following:
style = raw_input('What style is this? (1 = short, 2 = long): ')
flag = 0
while flag == 0:
if (style != 1) or (style != 2):
style = raw_input('There was a mistake. What style is this? (1 =
short, 2 = long): ')
else:
flag = 1
I would
Victor Subervi wrote:
Hi;
I have the following:
style = raw_input('What style is this? (1 = short, 2 = long): ')
flag = 0
while flag == 0:
if (style != 1) or (style != 2):
style = raw_input('There was a mistake. What style is this? (1 =
short, 2 = long): ')
else:
flag = 1
I would
Hi;
I have the following:
style = raw_input('What style is this? (1 = short, 2 = long): ')
flag = 0
while flag == 0:
if (style != 1) or (style != 2):
style = raw_input('There was a mistake. What style is this? (1 = short,
2 = long): ')
else:
flag = 1
I would think this would catch err