Python Newbie: SyntaxError: invalid syntax
Hi this has a problem with the last "else:" in the python code and I am not sure why? I am a massive newbie to scripting so any help would be great?
python pythontest.py File "pythontest.py", line 24 else: ^ SyntaxError: invalid syntax Thanks Code:
#!/usr/bin/python |
That else is indented wrong.
Code:
if re.search('^\d*$', sys.argv[1]): |
All times are GMT -5. The time now is 08:16 AM. |