def applied_to_degree(record, degree):
    """ (str, str) -> bool
    
    Return True iff the student represented by record has applied to the
    specified degree program.
    
    >>> applied_to_degree('Paul Gries,Ithaca High School,1986,BIO,60,70,CHM,80,90,CAT,95,96,BEng', 'BEng')
    True
    >>> applied_to_degree('Jacqueline Smith,Fort McMurray Composite High,2015,MAT,90,NE,ENG,92,88,CHM,80,85,BArts', 'BEng')
    False
    """
    
    return degree in record