Answer:
The solution code is written in Python 3:
- def listBuilder(l1, length):
- result = []
-
- for x in l1:
- if(len(x) >= length):
- result.append(x)
-
- return result
Step-by-step explanation:
Firstly, we create a variable result to hold the list will be returned at the end of the function. (Line 1)
Next, we create a for-loop to traverse the string in the l1 list (Line 4) and check for each string if their length is equal or bigger than the input length (Line 5). If so, we use append method to add the string to the result list.
At the end, return the result list as output (Line 8).