stmt1 = '\nstmt2='
t1 = timeit.Timer(stmt=stmt1)
t2 = timeit.Timer(stmt=stmt2)
print('%.2f usec/pass' % (1000000 * t2.timeit(number=10) / 10))
print('%.2f usec/pass' % (1000000 * t1.timeit(number=10) / 10))
Design an algorithm, find the most frequently used word in a book