Login Register


Password Generator filter_list
Author
Message
RE: Password Generator #11
(01-27-2014, 01:22 AM)Duubz Wrote: "elif" means else-if. I'm pretty sure it can function without an "else" but will shutdown if there is neither "yes" nor "no" in the input.

yes, I was aware of the meaning of elif.
I just remember reading in the docs somewhere that all if statements need an "else" part. That could've been Java though.
And yes, python will most definitely exit if there is no yes/no in the input. So it's probably just my habit to put the "else" there with an ERROR message Biggrin
[Image: TeusoI9.png]
BACK UNDER YOUR BEDS
TRY TO GET A GOOD NIGHT'S SLEEP NOW


Reply





Messages In This Thread
Password Generator - by Equinox - 01-26-2014, 08:31 AM
RE: Password Generator - by Eclipse - 01-26-2014, 09:58 AM
RE: Password Generator - by Equinox - 01-26-2014, 09:59 AM
RE: Password Generator - by Eclipse - 01-26-2014, 10:19 AM
RE: Password Generator - by Equinox - 01-26-2014, 03:40 PM
RE: Password Generator - by w00t - 01-26-2014, 06:17 PM
RE: Password Generator - by cr33pyguy - 01-26-2014, 08:19 PM
RE: Password Generator - by Equinox - 01-27-2014, 01:22 AM
RE: Password Generator - by cr33pyguy - 01-27-2014, 01:03 PM
RE: Password Generator - by 3SidedSquare - 01-26-2014, 09:02 PM
RE: Password Generator - by TheHelper - 01-26-2014, 09:15 PM
Re: RE: Password Generator - by Equinox - 01-27-2014, 03:19 PM



Users browsing this thread: