# Example 1: Moderate Withdrawal
# Pulse 105 (+2), Sweating (+2), Restless (+1), Aches (+1), GI (+2), Anxiety (+2), Others 0
# Total = 10 (Wait, sum is 10, which is Mild. Let's add Tremor +2, Yawning +1 -> Total 13)
cows_opiate_withdrawal(2, 2, 1, 0, 1, 0, 2, 2, 1, 2, 0)
# Example 2: Severe Withdrawal
# Pulse >120 (+4), Drenching Sweat (+4), Severe Restlessness (+5),
# Dilated Pupils (+5), Severe Aches (+4), Vomiting (+5), Tremor (+4),
# Frequent Yawning (+4), Severe Anxiety (+4), Gooseflesh (+5), Runny Nose (+4)
# Total = 48
cows_opiate_withdrawal(4, 4, 5, 5, 4, 4, 5, 4, 4, 4, 5)
Run the code above in your browser using DataLab