<human>:  Python function to check the interval in a list in Python.
<bot>:

# Enter the interval
interval = (3, 7)

# Calling the function
print((check_interval(list, interval)))

#Example Output
# True

#Remember to inspect code for bugs.