Given a list of integers, write a program to find the maximum value.
Implement find_max(nums), where nums is a non-empty list of integers. Return the largest integer in the list without sorting it.
find_max(nums)
nums
def find_max(nums):
Whenever you're ready, walk me through your approach or go straight to the code. The requirements are in the Question tab.