Question: The following console program uses parameters and produces five lines of output. What are they? def orange ( z , y , x ) :

The following console program uses parameters and produces five lines of output. What are they?
def orange(z, y, x):
print(y, "and", z, "were", x)
return x + y + z
def main():
x = "happy"
y = "pumpkin"
z = "orange"
pumpkin = "sleepy"
orange = "vampire"
orange(y, x, z)
x = orange(x, z, y)
orange(pumpkin, z,"y")
z = "green"
orange("x", "pumpkin", z)
orange(x, z, orange)
main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!