Q11Numerical3 Marks18 Dec 2025
What is the output of the following snippet of code?
```
total = 0
errors = 0
for s in ['5', '2.5', '7', '8']:
try:
n = int(s)
total += n
except:
errors += 1
total += 5
print(total + errors)
```
Press Enter to check.