just a total newbie here. I am learning Python and was trying to call the function as below, yet I cannot see any output.
nums = [0,1,2,7,14]
def has_lucky_num(nums):
    #return numbers that can be divisible by 7
    for num in nums:
        if num % 7 == 0:
            return True
        return False
has_lucky_num(nums)
Can someone tell me why it did not work? Thanks in advance.
 
     
     
     
    