Please help make a function shorterl1 l2 that takes as


Please help make a function shorter(l1, l2) that takes as inputs two lists l1 and l2, and that return the length of the shorter (of the two) lists. For example: (would love an explanation to it too)

>>> shorter_len(['dog', 'two'],['world', 'is', 'aweosme'])
2
>>> shorter_len([5, 'tps', '876', ['bp', 100]], ['u', 'are', 'tired'])
3
>>> print(shorter_len(['start', 'finsih'], [['start', 'fin ','finish']]))
1

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Please help make a function shorterl1 l2 that takes as
Reference No:- TGS02651610

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)