import time import sys t0=time.clock() f=open("in6_6.txt",'r') w=open("out_16_6_6.txt",'w') str=f.readlines() count=0 for i in range(len(str)): a=str[i] b=a.split(',') for x in range(len(b)): t=b[x] g=int(t) w.write('table of'+repr(g)) w.write("\n") count=count+1 for j in range(1,11): table=j*g w.write(repr(j)+'*'+repr(g)+'='+repr(table)) w.write("\n") multiplications=count*10+1 w.write('no of multiplications='+repr(multiplications)) mem=sys.getsizeof(t0)+sys.getsizeof(str)+sys.getsizeof(count)+sys.getsizeof(a)+sys.getsizeof(b)+108 t1=time.clock() t2=t1-t0 w.write("\n"+'time taken by the program='+repr(t2)) w.close()