'indent'ing Python in windows bat
David Smith
davids at invtools.com
Mon Sep 17 21:08:32 EDT 2012
More information about the Python-list mailing list
Mon Sep 17 21:08:32 EDT 2012
- Previous message (by thread): splitting numpy array unevenly
- Next message (by thread): 'indent'ing Python in windows bat
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello, I'm essentially a newbie in Python. My problem in searching the archives is not knowing what words to use to ask. I'm converting windows bat files little by little to Python 3 as I find time and learn Python. The most efficient method for some lines is to call Python like: python -c "import sys; sys.exit(3)" How do I "indent" if I have something like: if (sR=='Cope'): sys.exit(1) elif (sR=='Perform') sys.exit(2) else sys.exit(3) My sole result in many attempts is "Syntax Error." Thank you for any help.
- Previous message (by thread): splitting numpy array unevenly
- Next message (by thread): 'indent'ing Python in windows bat
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list