Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
customer={
"name": "John",
"age":23,
}
age=customer.setdefault("role","Chef")
print(age)
# Output : chef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment