Question: 1. 18 points Write a python function only short that takes a list of strings and return True if every string is short (defined as
1. 18 points Write a python function only short that takes a list of strings and return True if every string is "short" (defined as length 4 or less) and False if any string in th list is long (length 5 or more) Example: print (only_short(["", "taco", "rat", "to", "bop"])) # True print (only_short(["cat", "and", "rat", "rampage"])) # False print (only_sort (["taco", "night", "every", "night"])) #False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
