# Example 1: Major Trauma
# Head 4, Chest 3, Abdomen 2, others 0
# Score = 4^2 + 3^2 + 2^2 = 16 + 9 + 4 = 29
injury_severity_score(4, 0, 3, 2, 0, 0)
# Example 2: Automatic 75
# Head 6 (Unsurvivable)
# Score = 75
injury_severity_score(6, 2, 2, 0, 0, 0)
Run the code above in your browser using DataLab