What function is 'u0, j = random(), 0'?

fl rxjwg98 at gmail.com
Sat Nov 14 21:23:53 EST 2015


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,



More information about the Python-list mailing list