def get_certified_programs(student):
 certified_programs = []
 for credential in get_user_credentials(student):
  if ('program_uuid' in credential['credential']):
   certified_programs.append(credential['credential']['program_uuid'])
 return certified_programs

def get_certified_programs ( student ) : certified_programs = [ ] for credential in get_user_credentials ( student ) : if ( 'program_uuid' in credential [ 'credential' ] ) : certified_programs . append ( credential [ 'credential' ] [ 'program_uuid' ] ) return certified_programs
find the uuids of all the programs for which the student has already been awarded a certificate .