def print_available_languages():
 language_dict = {'ar': 'Arabic', 'ru': 'Russian', 'nl': 'Dutch', 'de': 'German', 'en': 'English', 'es': 'Spanish', 'fr': 'French', 'he': 'Hebrew', 'it': 'Italian', 'ko': 'Korean', 'no': 'Norwegian', 'nb': 'Norwegian (Bokm\xc3\xa5l)', 'pt': 'Portuguese', 'sv': 'Swedish', 'hu': 'Hungarian', 'fi': 'Finnish', 'da': 'Danish', 'zh': 'Chinese', 'id': 'Indonesian', 'vi': 'Vietnamese', 'mk': 'Macedonian', 'tr': 'Turkish'}
 codes = get_available_languages()
 print '\nYour available languages are:'
 print '\ninput code DCTB  DCTB full name'
 for code in codes:
  print ('  %s DCTB  DCTB  DCTB   %s' % (code, language_dict[code]))
 print ()

def print_available_languages ( ) : language_dict = { 'ar' : 'Arabic' , 'ru' : 'Russian' , 'nl' : 'Dutch' , 'de' : 'German' , 'en' : 'English' , 'es' : 'Spanish' , 'fr' : 'French' , 'he' : 'Hebrew' , 'it' : 'Italian' , 'ko' : 'Korean' , 'no' : 'Norwegian' , 'nb' : 'Norwegian (Bokm\xc3\xa5l)' , 'pt' : 'Portuguese' , 'sv' : 'Swedish' , 'hu' : 'Hungarian' , 'fi' : 'Finnish' , 'da' : 'Danish' , 'zh' : 'Chinese' , 'id' : 'Indonesian' , 'vi' : 'Vietnamese' , 'mk' : 'Macedonian' , 'tr' : 'Turkish' } codes = get_available_languages ( ) print '\nYour available languages are:' print '\ninput code DCTB  DCTB full name' for code in codes : print ( '  %s DCTB  DCTB  DCTB   %s' % ( code , language_dict [ code ] ) ) print ( )
prints available languages with their full names .