Run
my_list = ["Apple", 25, 100, "Fig", "Peach", 3.14, 1.20] filtered_list = [x for x in my_list if isinstance(x, str)] print(f"Filtered list : {filtered_list}")
Output