below are my codes
ls = np.repeat(4,5).tolist()
ls.append(100*3)
the output I get is as expected
[4, 4, 4, 4, 4, 300]
However when I do this
ls = np.repeat(4,5).tolist().append(100*3)
my "ls" is blank?? what am I doing wrong?
below are my codes
ls = np.repeat(4,5).tolist()
ls.append(100*3)
the output I get is as expected
[4, 4, 4, 4, 4, 300]
However when I do this
ls = np.repeat(4,5).tolist().append(100*3)
my "ls" is blank?? what am I doing wrong?