Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Help
#1
I have 2 questions regarding Python and would gladly appreciate any support.

The first one, is when I entered
Code:
>>> elif b = 2:
(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 Smile
Reply


Messages In This Thread
Python Help - by Dεlluzion - 02-13-2011, 05:02 AM
RE: Python Help - by Gaijin - 02-13-2011, 01:00 PM
RE: Python Help - by Doldol - 04-17-2011, 05:43 AM
RE: Python Help - by samsmith001 - 09-30-2019, 12:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Python Python Compiler Canoris 21 8,349 06-01-2011, 06:30 PM
Last Post: Filefinder
  Python 2 vs 3? Jake 8 2,224 12-11-2010, 04:13 PM
Last Post: Bursihido
  Python help Kharnage 2 748 02-12-2010, 09:07 PM
Last Post: Kharnage
  "==" and "is" in Python Canoris 1 740 02-07-2010, 03:55 PM
Last Post: uber1337
  I Need Help with Python Kharnage 19 3,624 02-06-2010, 08:58 AM
Last Post: Kharnage

Forum Jump:


Users browsing this thread: 3 Guest(s)