For this sample program
N = int(raw_input());
n = 0;
sum = 0;
while n<N:
sum += int(raw_input());
n+=1;
print sum;
I have a set of testcases, so I need a python program that invokes the above python program, gives input and should validate the output printed in the console.