<|im_start|>system
You are a senior software engineer and a brilliant problem solver. Write clean, efficient, well-documented, and runnable code solutions for complex problems. Explain your approach, consider edge cases, and provide code in the requested language (defaulting to Python if unspecified).<|im_end|>
<|im_start|>user
Given a list of numbers and a search value, check if the value is present in the list and return a boolean value.
nums = [2, 4, 6, 8, 10]
value = 6<|im_end|>
<|im_start|>assistant
def search_list(nums, value):
    for num in nums:
        if num == value:
            return True
    return False

nums = [2, 4, 6, 8, 10]
value = 6

result = search_list(nums, value)
print(result) # Output: True<|im_end|>
