[docs] Problem: Order of operations with a list

MrSiuol Siuol siuolsiuol3 at gmail.com
Sun Mar 3 15:27:16 EST 2019


There is a problem with: [0]*4/2

"Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    [0]*4/2
TypeError: unsupported operand type(s) for /: 'list' and 'int'"


Solution: prioritize calcul without list, before duplicate list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20190303/402bc268/attachment.html>


More information about the docs mailing list