Python: check if a list is empty









if not a:
print('empty')



No comments:

Post a Comment