Hi, why isn’t this a valid solution?

#Write your function here

def max_num(nums):

maximum = nums[0]

maximum = [num for num in nums if num > maximum]

maximum = maximum[0]

return maximum#Uncomment the line below when your function is done

print(max_num([50, -10, 0, 75, 20]))