Created
November 23, 2016 06:54
-
-
Save arsho/8b4d51cfb4637f19395459390a49cb06 to your computer and use it in GitHub Desktop.
Removing a list item using remove method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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