Comment on Python: copying a list the right wayComments−hwiechers14ylist(x) is also used for converting a sequence x to a list. x[:] is actually more explicit because it only means 'copy x'.
Comments
list(x) is also used for converting a sequence x to a list. x[:] is actually more explicit because it only means 'copy x'.