First time here? Check out the FAQ!
answered 6 years ago
Perhaps
vector(SR,[1]*10)
is worth mentioning as well. Here, [1]*10 is just the Python way of constructing a list with 10 repeats of 1.
[1]*10
updated 6 years ago
PerhapsFor the follow-up question posted as a comment to @tmonteil's answer:
vector(SR,[1]*10) vector(SR, [1]*10)
is worth mentioning as well. Here, [1]*10 is just the Python way of of constructing a list with 10 repeats of 1.