Source Code:
(back to article)
my_list = [] if not my_list: print("The list is empty")
Result:
Report an issue