Skip to content

Instantly share code, notes, and snippets.

@ben-n93
Created February 27, 2023 07:37
Show Gist options
  • Save ben-n93/834533527887835d3742c6924c821688 to your computer and use it in GitHub Desktop.
Save ben-n93/834533527887835d3742c6924c821688 to your computer and use it in GitHub Desktop.
colours = ['red', 'green', ['cobalt', 'teal', 'blue']]
colours_copy = colours[:]
colours[2].append('sky')
colours_copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment