<prompt> Andika kazi ya kuchuja orodha kwa vitu ambavyo vina kamba fulani.orodha apple, chungwa, mbanana, melon, cherry kamba an  <response>: pythondef filter_list_by_stringmy_list, my_string: filtered_list for item in my_list: if my_string in item: filtered_list.appenditem return filtered_list my_list apple, orange, banana, watermelon, cherrymy_string anoutput filter_list_by_stringmy_list, my_stringprintoutputThis will return a list containing only items that have the string an in them, so the output will be banana, watermelon. 