The function find_max should return the largest number in a list.
But it ignores most of the list: find_max([3, 1, 4, 1, 5, 9, 2, 6]) should be 9, and it returns 3. The logic looks right at first glance, but something is wrong about where one of the statements lives.
Fix it without changing the algorithm.
formax()Read the code. Before running anything: what does the last line below give?