def make_user_interest_vector(user_interests):
 return [(1 if (interest in user_interests) else 0) for interest in unique_interests]

def make_user_interest_vector ( user_interests ) : return [ ( 1 if ( interest in user_interests ) else 0 ) for interest in unique_interests ]
given a list of interests .