def find_max(lst): if not lst: return None max_value = lst[0] for num in lst: if num > max_value: max_value = num return max_value