In a throwback to CT days, you have to write one of the basic list functions.
Write a function named is_empty that accepts a list L as argument. It should
return True if the list is empty, and False otherwise.
You do not have to accept input from the user or print anything to the console. You just have to write the function definition.
Example
is_empty([]) -> True
is_empty([1, 2, 3]) -> False
Implement this function:
def is_empty(L):
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: L.
Input
[]
Output
True