Skip to content

Instantly share code, notes, and snippets.

@tclancy
Created December 10, 2011 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tclancy/1455509 to your computer and use it in GitHub Desktop.
Save tclancy/1455509 to your computer and use it in GitHub Desktop.
reindent.bat for Python on Windows
@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
@jeyajeya
Copy link

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")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment