02-13-2011, 05:02 AM
I have 2 questions regarding Python and would gladly appreciate any support.
The first one, is when I entered
(It's the last script for the Password Generator program I want to create)
It came up with SyntaxError: invalid syntax. Does anyone know whats wrong with this? It looks like the "elif" thats causing the problem.
The second one is, when I eventually do complete the scripts with no errors, I save the program and then when I want to open it (it's saved as a .py now) it doesn't respond. I then saved it to the type "All Files". I opened it, and still nothing appeared. Then I decided to "Open With" the Command Processor, and it just came up as "/windows/etc/Python 26: >>>"
So basically my questions are : 1) What is wrong with the elif and how can I fix it to not receive the error.. 2) What extension do I have to save the .py file to open the program?
Thanks guys
The first one, is when I entered
Code:
>>> elif b = 2:
It came up with SyntaxError: invalid syntax. Does anyone know whats wrong with this? It looks like the "elif" thats causing the problem.
The second one is, when I eventually do complete the scripts with no errors, I save the program and then when I want to open it (it's saved as a .py now) it doesn't respond. I then saved it to the type "All Files". I opened it, and still nothing appeared. Then I decided to "Open With" the Command Processor, and it just came up as "/windows/etc/Python 26: >>>"
So basically my questions are : 1) What is wrong with the elif and how can I fix it to not receive the error.. 2) What extension do I have to save the .py file to open the program?
Thanks guys