def make_providers_strings(providers):
 if (not providers):
  return None
 if (len(providers) == 1):
  providers_string = providers[0]
 elif (len(providers) == 2):
  providers_string = _('{first_provider} and {second_provider}').format(first_provider=providers[0], second_provider=providers[1])
 else:
  providers_string = _('{first_providers}, and {last_provider}').format(first_providers=u', '.join(providers[:(-1)]), last_provider=providers[(-1)])
 return providers_string

def make_providers_strings ( providers ) : if ( not providers ) : return None if ( len ( providers ) == 1 ) : providers_string = providers [ 0 ] elif ( len ( providers ) == 2 ) : providers_string = _ ( '{first_provider} and {second_provider}' ) . format ( first_provider = providers [ 0 ] , second_provider = providers [ 1 ] ) else : providers_string = _ ( '{first_providers}, and {last_provider}' ) . format ( first_providers = u', ' . join ( providers [ : ( - 1 ) ] ) , last_provider = providers [ ( - 1 ) ] ) return providers_string
get the list of course providers and make them comma seperated string .