Skip to content

Instantly share code, notes, and snippets.

@tclancy tclancy/reindent.bat
Created Dec 10, 2011

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

jeyajeya commented May 21, 2017

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
You can’t perform that action at this time.