Hi,

When I read the below code, I cannot make the last line (with ######) out.



def res(weights):
  n = len(weights)
  indices = []
  C = [0.] + [sum(weights[:i+1]) for i in range(n)]
  u0, j = random(), 0  ######


If I run below code on console, it will say an error.

uu, 0.1, 0


What difference is between these two example lines?

Thanks,
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to