Skip to content

Instantly share code, notes, and snippets.

@JoMingyu
Last active March 31, 2018 10:40
def sum(a=0, b=0, *, c=0, d=0):
return a + b + c + d
print(sum(3, 4, c=5, d=6))
# 18
print(sum(3, 4, 5, 6))
# TypeError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment