So I have this list and variables:
nums = [14, 8, 9, 16, 3, 11, 5] big = nums[0] spot = 0
I\'m confused on how to actually do it. Please
Usually, you could just use
max(nums)
If you explicitly want to use a loop, try:
max_value = None for n in nums: if n > max_value: max_value = n