<reponame>pedwards95/Springboard_Class
def last_element(lst):
    """Return last item in list (None if list is empty.

        >>> last_element([1, 2, 3])
        3

        >>> last_element([]) is None
        True
    """
    if not not lst:
        return lst[len(lst)-1]
    else:
        return

print(last_element([1, 2, 3]))
print(last_element([]))

