I'm trying to do something like:
([0.01]*9).append(0.91)
to get to:
[0.01, 0.01, 0.01, 0.01, ...., 0.91]
Is there a way to do this in one line rather than:
temp = [0.01]*9
temp = temp.append(0.91)
I'm trying to do something like:
([0.01]*9).append(0.91)
to get to:
[0.01, 0.01, 0.01, 0.01, ...., 0.91]
Is there a way to do this in one line rather than:
temp = [0.01]*9
temp = temp.append(0.91)