diff --git a/02-array-seq/listcomp_speed.py b/02-array-seq/listcomp_speed.py index 0ec8b58..8f22263 100644 --- a/02-array-seq/listcomp_speed.py +++ b/02-array-seq/listcomp_speed.py @@ -1,3 +1,7 @@ +# -*- coding: utf-8 -*- +# need print to be a function so I can call '*' (splat) +# on a list to unpack it as arguments to print() +from __future__ import print_function import timeit TIMES = 10000