Essa linha de código:
%time for _ in range(100): py_list = [x * 2.0 for x in py_list]
Ao executar da uma mensagem de erro:
TypeError Traceback (most recent call last) in () 3 # no video do professor funcionou e a lista executou em 10 segundos 4 ----> 5 get_ipython().magic('time for _ in range(100): py_list = [x * 2.0 for x in py_list]')
3 frames in time(self, line, cell, local_ns)
/usr/local/lib/python3.7/dist-packages/IPython/core/magics/execution.py in time(self, line, cell, local_ns) 1191 else: 1192 st = clock2() -> 1193 exec(code, glob, local_ns) 1194 end = clock2() 1195 out = None
in ()
TypeError: 'int' object is not iterable