def get_both_marks(record, course_code):
    """ (str, str) -> str
    
    Return a string containing the course mark and final mark respectively, 
    separated by a single space, corresponding to a particular course code 
    from the record. If the course code is absent from the record
    then return an empty string.
    
    >>> get_both_marks('Jacqueline Smith,Fort McMurray Composite High,2015,MAT,90,94,ENG,92,88,CHM,80,85,BArts', 'MAT')
    '90 94'
    >>> get_both_marks('Jacqueline Smith,Fort McMurray Composite High,2015,MAT,90,94,ENG,92,88,CHM,80,85,BArts', 'CAT')
    ''
    >>> get_both_marks('Paul Gries,Ithaca High School,1986,BIO,60,70,CHM,80,NE,CAT,10,20,BEng', 'CHM')
    '80 NE'
    """
    
    if course_code in record:
        i = record.index(course_code)
        return record[(i + 4):(i + 6)] + " " + record[(i + 7):(i + 9)]
    else:
        return ''