Respuesta :
Answer:
def filter_only_certain_strings(data_list):
new_list = []
for data in data_list:
# fix here. change >= to >
# because we want to return strings longer than 5 characters in length.
if type(data) == str and len(data) > 5:
new_list.append(data)
return new_list
Explanation:
def filter_only_certain_strings(data_list):
new_list = []
for data in data_list:
# fix here. change >= to >
# because we want to return strings longer than 5 characters in length.
if type(data) == str and len(data) > 5:
new_list.append(data)
return new_list
In this exercise we have to use the knowledge of computational language in python to write the code.
This code can be found in the attached image.
To make it simpler the code is described as:
def filter_only_certain_strings(data_list):
new_list = []
for data in data_list:
if type(data) == str and len(data) > 5:
new_list.append(data)
return new_list
See more about python atbrainly.com/question/22841107
