On Fri, 13 Jul 2007 06:37:19 +0200, Stargaming wrote
> bdude schrieb:
> > Hey, I'm new to python and am looking for the most efficient way to
> > see if the contents of a variable is equal to one of many options.
> >
> > Cheers,
> > Bryce R
> >
>
> if var in ('-h', '--hello', '-w', '--world'):
>
bdude schrieb:
> Hey, I'm new to python and am looking for the most efficient way to
> see if the contents of a variable is equal to one of many options.
>
> Cheers,
> Bryce R
>
if var in ('-h', '--hello', '-w', '--world'):
pass
Most maintenance-efficient, that is.
--
http://mail.python.o
Hey, I'm new to python and am looking for the most efficient way to
see if the contents of a variable is equal to one of many options.
Cheers,
Bryce R
--
http://mail.python.org/mailman/listinfo/python-list