Created
April 22, 2018 05:18
-
-
Save xodhx4/9897180375fe194d4402ce2aa4ff4b35 to your computer and use it in GitHub Desktop.
how to test list is empty
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 = list() | |
# test list is empty | |
if not a: | |
print('list is empty') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment