import time start =time.clock() sum=0 for i in range(1,101): sum=sum+i print(sum ) end = time.clock() print('Running time: %s Seconds'%(end-start))
import time start =time.clock() sum=0 for i in range(1,101): sum=sum+i print(sum ) end = time.clock() print('Running time: %s Seconds'%(end-start))