logo CodeStepByStep logo

touch

Language/Type: Python parameters print

What output is produced by the following program?

def touch(elbow, ear):
    print("touch your", elbow, "to your", ear)

def main():
    head = "shoulders"
    knees = "toes"
    elbow = "head"
    eye = "eyes and ears"
    ear = "eye"

    touch(ear, elbow)
    touch(elbow, ear)
    touch(head, "elbow")
    touch(eye, eye)
    touch(knees, "Toes")
    touch(head, "knees " + knees)

main()
line 1
line 2
line 3
line 4
line 5
line 6

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.