Created
August 27, 2018 03:50
-
-
Save ykai55/a8766cd7aee03a44a6e479fac01c1e3a to your computer and use it in GitHub Desktop.
Python: delete all items of list
This file contains hidden or 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
| l = [[], (), {}] | |
| del l[:] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment