You can use this assignment in your class!
Mastery Progress(100.0%)
i

Programming Using Python Day 1 Review

What is the output of the following code with the input hairy then chair:

adj = input()
noun = input()
print("The " + adj + " dog likes the " + noun)

You answeredJUST NOW

(Student response here)

  • I want to share my response with my peers
  • Share as
    (Student name)
    Options
    • (Student name)
    • Anonymous

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Alec KretchJUL 26, 2021, 2:35:23 PM

This code outputs The hairy dog likes the chair.
adj is replaced by the first input, hairy.
noun is replaced by the second input, chair.

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?

What are the inputs to make the output of the following code Chicken Little was a baby rooster:

print(input() + " Little " + input() + " a baby " + input())
Select one of the following options:
  • A.

    Chicken Little
    baby rooster

  • B.

    Chicken
    was
    rooster

  • C.

    Chicken
    Little
    rooster

  • D.

    Chicken
    Little
    was
    a
    baby
    rooster

Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.