This Python function takes a list and returns a specific message depending on whether the number 7 is present within it.
The goal of this task is to create a Python function named `solution`. The function needs to take in one parameter, a list containing integers (`num_list`), and search for the presence of the digit 7 within it. This includes searching within the numbers themselves. If the digit 7 is found anywhere in `num_list`, the function should return the string "Boom!". If the digit 7 is not present, the function should return "There is no 7 in the list". ### Parameters - `num_list` (list): A list of integers. ### Return Value - If the digit 7 is found anywhere within `num_list`, the function should return the string "Boom!". - If the digit 7 is not found, the function should return the string "There is no 7 in the list". ### Examples ```python # 7 is an element in the list solution([1, 2, 3, 4, 5, 6, 7]) # Returns: "Boom!" # 7 does not exist in the list solution([8, 6, 33, 100]) # Returns: "There is no 7 in the list" # 97 contains the digit 7 solution([2, 55, 60, 97, 86]) # Returns: "Boom!" ```