![]() |
|
Password Generator - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Python (https://sinister.ly/Forum-Python) +--- Thread: Password Generator (/Thread-Password-Generator) Pages:
1
2
|
RE: Password Generator - cr33pyguy - 01-27-2014 (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
Re: RE: Password Generator - Equinox - 01-27-2014 (01-27-2014, 01:03 PM)cr33pyguy Wrote: yes, I was aware of the meaning of elif. Not necessarily an error seeing as catching one would be a try-except statement but I get what you mean. |