loading...

re: 71 Python Code Snippets for Everyday Problems VIEW POST

FULL DISCUSSION
 

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?!

Code of Conduct Report abuse