⬅︎ Back to An effective and immutable way to turn two Python lists into one
Ouch. Feel free to discard this post after you fix this.After the insert, shouldn't combined be[100, 123, 503, 1001, 45, 812, 332]?After all, you started with 2 lists of 3 items (6 total). Adding another item gives 7 items, not 6.
You are stunningly correct! Thanks for the catch. Bad copy-n-pasta-job on my end. Corrected and again, thank you for mentioning it.
Comment
Ouch. Feel free to discard this post after you fix this.
After the insert, shouldn't combined be
[100, 123, 503, 1001, 45, 812, 332]
?
After all, you started with 2 lists of 3 items (6 total). Adding another item gives 7 items, not 6.
Replies
You are stunningly correct! Thanks for the catch. Bad copy-n-pasta-job on my end. Corrected and again, thank you for mentioning it.