SyntaxFix
Write A Post
Hire A Developer
Questions
This is more pythonic
my_list = [0, 1, 2, 3, 4, 5] # some list my_list_copy = list(my_list) # my_list_copy and my_list does not share reference now.
NOTE: This is not safe with a list of referenced objects