The program below defines a supplies() function that takes three parameters - item1, item2, and item3. Each parameter is given a default value. Where shown by the comment, add 5 calls to the supplies() function as follows:

Call supplies() with no parameters
Call supplies() with one value, "pen"
Call supplies() by specifying the value for item2 as "textbook"
Call supplies() with two parameters, "compass" and "computer"
Call supplies() with two parameters, setting item1 to "canvas" and item3 to "paintbrush"
The following example demonstrates the expected program output.

In this class you will need a pencil, paper, and calculator
In this class you will need a pen, paper, and calculator
In this class you will need a pencil, textbook, and calculator
In this class you will need a compass, computer, and calculator
In this class you will need a canvas, paper, and paintbrush

def supplies(item1 = "pencil", item2 = "paper", item3 = "calculator"):
print("In this class you will need a " + item1 + ", " + item2 + ", and " + item3)

# student code here

1 answer

supplies()
supplies("pen")
supplies(item2 = "textbook")
supplies("compass", "computer")
supplies("canvas", item3 = "paintbrush")
Similar Questions
  1. The equation y = mx + b defines what type of function? (1 point)Oa slope function Oa linear function ☐ a nonlinear function
    1. answers icon 1 answer
  2. The equation y= mx + b defines what type of function?a nonlinear function a linear function a slope function an initial value
    1. answers icon 1 answer
    1. answers icon 1 answer
    1. answers icon 4 answers
more similar questions