Skip to content

Instantly share code, notes, and snippets.

View idrisr's full-sized avatar
🎯
shedding

Idris Raja idrisr

🎯
shedding
View GitHub Profile
@idrisr
idrisr / sample.py
Created November 30, 2011 02:39 — forked from codeeval/sample.py
Sample code to read in test cases
# On CodeEval, test cases are read in from a file which is the first argument to your program
# Open the file and read in line by line. Each line represents a different test case
# (unless given different instructions in the challenge description)
import sys
test_cases = open(sys.argv[1], 'r')
for test in test_cases:
# ignore test if it is an empty line