Skip to content

Instantly share code, notes, and snippets.

@Linus-Albertus
Created May 26, 2019 11:09
Show Gist options
  • Save Linus-Albertus/eb5ab715e3b3c6ebe10bbc34373aacc2 to your computer and use it in GitHub Desktop.
Save Linus-Albertus/eb5ab715e3b3c6ebe10bbc34373aacc2 to your computer and use it in GitHub Desktop.
[copy a list] Copy a list, not just a reference to it #python #list
new_list = old_list.copy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment