Print d.get("riven", 0) from a dict that may or may not have it.
.get with default.
5
d = {"riven": 5}