For example, if passed the following:
a = []
How do I check to see if a is empty?
By using the implicit booleans of the empty list are quite pythonic.
if not a:print("List is empty")
if not a:
print("List is empty")