chevron_left chevron_right
Login Register invert_colors photo_library


Stay updated and chat with others! - Join the Discord!
Thread Rating:
  • 0 Vote(s) - 0 Average


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

Re: RE: Password Generator #12
(01-27-2014, 01:03 PM)cr33pyguy Wrote: 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

Not necessarily an error seeing as catching one would be a try-except statement but I get what you mean.

Reply






Users browsing this thread: 1 Guest(s)