def compare_languge(language, lang_list):
 found = False
 for l in lang_list:
  if (language == l.lower()):
   found = True
   break
 return found

def compare_languge ( language , lang_list ) : found = False for l in lang_list : if ( language == l . lower ( ) ) : found = True break return found
check if language is found .