Post labs are to be done individually. Sharing files between students is not allowed. Doing so is an Academic Integrity violation, and will be treated as such.
The power of conditionals is that now we can use comparisons to determine a true output. To demonstrate your knowledge of conditionals, you will write a simple function using conditionals.
Create a function called compute_min(operand1, operand2,
operand3)
in a file called minimum.py. This
function should have three integer parameters. It should return the
minimum of these three values. The function should not use
the built-in min
function.
Test your function by calling the function multiple times with different parameters. Make sure you follows the course's code conventions.
Function Parameters | Expected Output |
---|---|
0, 1, 2 | 0 |
1, 0, 2 | 0 |
1, 2, 0 | 0 |
1, 2, 1 | 1 |
Submissions for post labs are to be done via the inquire system. Go to http://inquire.roanoke.edu/ You should see a section for post labs. Submit your .py file to the appropriate post lab location.
Post labs are to be done individually. Sharing files between students is not allowed. Doing so is an Academic Integrity violation, and will be treated as such.