# Example 1: High Risk
# Swelling (1), Hard (1), No Reflex (1), Nausea (0), High Riding (0)
# Score = 2 + 2 + 1 = 5
twist_score(1, 1, 1, 0, 0)
# Example 2: Low Risk
# No swelling, soft testicle, reflex present (0), nausea (1), normal position
# Score = 1
twist_score(0, 0, 0, 1, 0)
Run the code above in your browser using DataLab