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