Nifty list!
Another way to clone a list:
my_duplicate_list = [*my_list]
Oh, this is cool! I can't believe there are even more slick ways to copy a list. Do you mind if I include this in the original article with credit to you for the tip?
Absolutely, happy to contribute :)
Just updated the article to include your solution. Did you know this solution is blazing fast?!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nifty list!
Another way to clone a list:
Oh, this is cool! I can't believe there are even more slick ways to copy a list. Do you mind if I include this in the original article with credit to you for the tip?
Absolutely, happy to contribute :)
Just updated the article to include your solution. Did you know this solution is blazing fast?!