Created
December 10, 2011 16:26
-
-
Save tclancy/1455509 to your computer and use it in GitHub Desktop.
reindent.bat for Python on Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
if [%1]==[] goto USAGE | |
goto REINDENT | |
:USAGE | |
echo. | |
echo Usage: reindent path\to\file.py | |
echo. | |
goto END | |
:REINDENT | |
for %%i in (python.exe) do set PYTHONHOME=%%~dp$PATH:i | |
python %PYTHONHOME%\Tools\Scripts\reindent.py %1 | |
:END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if name == 'main':
n = int(raw_input())
if n%2!=0 :
print ("Weird")
if n%2==0 :
n in range (2,5)
print ("Not Weird")
if n%2==0 :
n in range (6,20)
print ("Weird")
if n>20 :
print ("Weird")