Above = 'Above' Below = 'Below' Left = 'Left' Right = 'Right' Shoulder = 'Shoulder' Elbow = 'Elbow' Wrist = 'Wrist' Finger = 'Finger' Toe = 'Toe' Foot = 'Foot' Ankle ='Ankle' Calf = 'Calf' Knee = 'Knee' Thigh = 'Thigh' Groin = 'Groin' print 'Where is your injury located? Above or Below waist?' above_or_below = raw_input() if above_or_below == above: print 'Is your injury on your Left or Right side?' left_or_right = raw_input() print "Where is your injury: Shoulder, Elbow, Wrist, or Finger?' where_top = raw_input() else: print 'Is your injury on your Left or Right side?' left_or_right = raw_input() print 'Where is your injury: Toe, Foot, Ankle, Calf, Knee, Thigh, or Groin' where_bottom = raw_input() print "So your injury is located %s your waist, to the %s side of your body, and is on your %s. Is this correct: YES or NO?" % (above_or_below, left_or_right, where_top or where_bottom)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question