Can anyone please suggest me why this function doesn't return re , if i pass any int it just return an int
def fun (a):
    if a:
        if type(a) == int:
            return "an int"
        else:
            return "not"
    re = {"key":a}
    return re
It this a python condition
 
     
     
     
    