<|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
Write a code snippet to find the most frequent number greater than 100 from a list of numbers.
[102, 130, 102, 140, 150, 60, 70, 102, 140]<|im_end|>
<|im_start|>assistant
def most_frequent(nums):
    # Initialize a dictionary to count the frequency 
    # of each number in the list
    count = {}

    # Iterate through the list and increase the 
    # count of each number in the dictionary
    for num in nums:
        if num> 100:
            if num not in count:
                count[num] = 1
            else:
                count[num] += 1
    
    # Find the most frequent number
    max_count = 0
    most_frequent_num = 0
    for k,v in count.items():
        if v> max_count:
            most_frequent_num = k
            max_count = v
    return most_frequent_num<|im_end|>
