Finding the Largest Value in a List¶
Write a program that creates a list to hold random numbers from 1
to 100
. Display the values in the list on the screen. Then use a linear search to find the largest value in the list, and display that value.
Array: 45 87 39 32 93 86 12 44 75 50
The largest value is 93
©2021 Daniel Gallo
This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.
Adapted for Python from Graham Mitchell’s Programming By Doing