Long fruit

Report a typo

We have the following list fruits = ['apple', 'kiwi', 'banana', 'orange', 'apricot']. Choose the correct line of code which will form a dictionary like this:

  • key: fruit name;
  • value: number of letters in the fruit name.

Moreover, the new dictionary should only include names longer than 5 characters.

Select one option from the list
___

Create a free account to access the full topic