Autumn Offers - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Practice

Instruction

Very good! Giving up is not an option!

Exercise

Create a function find_short_long_word(words_list). The function should return the tuple of the shortest word in the list and the longest word in the list (in that order). If there are multiple words with minimum length, you should return the first shortest word in the list. And if there are multiple words with maximum length in the list, you should return the last longest word in the list.

For example, for the following list:

words = ['go', 'run', 'play', 'see', 'my', 'stay']

the function should return

('go', 'stay')

You can assume that the input list is non-empty.

Stuck? Here's a hint!

You may want to use the len() function multiple times.