Rebinding the Name, Not the Default
DEFAULT_TAGS = ["urgent"]
def tag(item, tags=DEFAULT_TAGS):
return f"{item}: {tags}"
DEFAULT_TAGS = ["urgent", "reviewed"]
print(tag("ticket-1"))
What does this print?
Sign in to answer questions and track your progress
Sign In