logo CodeStepByStep logo

sentence_whom

Language/Type: Python parameters print

What output is produced by the following program?

def sentence(she, who, whom):
    print(who, "and", whom, "like", she)

def main():
    whom = "her"
    who = "him"
    it = "who"
    he = "it"
    she = "whom"

    sentence(he, she, it)
    sentence(she, he, who)
    sentence(who, she, who)
    sentence(it, "stu", "boo")
    sentence(it, whom, who)

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

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.