On Sat, 28 Oct 2017 09:11 am, japy.ap...@gmail.com wrote:
> import time
>
> avg = float(0)
That should be written as
avg = 0.0
or better still not written at all, as it is pointless.
> # copy with WITH function and execute time
> for i in range(500):
> start = time.clock()
time.clock()
import time
avg = float(0)
# copy with WITH function and execute time
for i in range(500):
start = time.clock()
with open('q://my_projects/cricket.mp3', 'rb') as old,
open('q://my_projects/new_cricket.mp3', 'wb') as new:
for j in old:
new.write(j)
stop = time.cloc