def the_largest(nums): largest = 0 for n in nums: if n > largest: largest = n return largest nums = [-1, 3, -4, 10, 9] largest = the_largest(nums) print(largest)
Is Bad:
Not Bad: