# Example 1: X-ray Indicated (Age)
# Trauma (1), Age 60, Can walk (0)
pittsburgh_knee_rules(1, 60, 0)
# Example 2: X-ray Indicated (Inability to walk)
# Trauma (1), Age 30, Cannot walk (1)
pittsburgh_knee_rules(1, 30, 1)
# Example 3: Not Indicated
# Trauma (1), Age 30, Can walk (0)
pittsburgh_knee_rules(1, 30, 0)
Run the code above in your browser using DataLab