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