< Back

Post Lab 22

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.


Lists allow us to store a lot of data at once. Often the difficult part of working with lists is not the storage, but processing the data within. To demonstrate your knowledge of using lists, write a function that processes the data within a list.

Details

Write a function called find_maximum(an_integer_list). This function takes a single parameter, a list of integers. Your function should return an integer value: the largest value contained in the list. DO NOT USE THE max FUNCTION FOR THIS ACTIVITY.

Make sure your program handles all necessary cases gracefully. What additional test cases should you check?

Sample Test Cases

Function Parameters Sample Output
[1, 2, 3] 3
[0] 0

Submission

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.