LLD - Design — Library Management System
Analyze the following fine calculation code snippet. What issue will arise during execution?
fineRates = {"speeding": 150, "parking": 75}
violations = ["speeding", "noHelmet"]
totalFine = 0
for v in violations:
totalFine += fineRates[v]