Skip to content

Instantly share code, notes, and snippets.

@arsho
Created November 23, 2016 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsho/8b4d51cfb4637f19395459390a49cb06 to your computer and use it in GitHub Desktop.
Save arsho/8b4d51cfb4637f19395459390a49cb06 to your computer and use it in GitHub Desktop.
Removing a list item using remove method
a = {'pantera' : ['cemetary gates','cowboys from hell','nothing else matters']}
a["pantera"].remove('nothing else matters')
print(a)
# output: {'pantera': ['cemetary gates', 'cowboys from hell']}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment