Session Ready
Exercise

Getting the vocabularies

Now you have two lists that contain the English sentences and the corresponding French sentences. In this exercise, you'll iterate over each character of each of the sentences and find out the set of unique characters in each of the languages. You'll create the vocabulary from both the English sentences and the French sentences.

The English and the French sentences are available in variables english_sentences and french_sentences respectively.

Instructions 1/2
undefined XP
  • 1
    • Iterate over each English sentence and get a set of characters out of it.
    • Use .union() to update the English vocabulary.
    • 2
      • Iterate over each French sentence and get a set of characters out of it.
      • Use .union() to update the French vocabulary.