Instantly share code, notes, and snippets.

Embed
What would you like to do?
def function_name (iterable):
if len(iterable) > 0:
return iterable[-1]
else:
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment