⬅︎ Back to An effective and immutable way to turn two Python lists into one
You are stunningly correct! Thanks for the catch. Bad copy-n-pasta-job on my end. Corrected and again, thank you for mentioning it.
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.
Comment
You are stunningly correct! Thanks for the catch. Bad copy-n-pasta-job on my end. Corrected and again, thank you for mentioning it.
Parent 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.