LLD - Design — Library Management System
What will be the output of this pseudo-code?
fineRates = {"lateReturn": 20, "damage": 100}
violations = ["damage", "lateReturn", "damage"]
totalFine = sum(fineRates[v] for v in violations if v != "lateReturn")
print(totalFine)