Can someone help me with this question please
Use a for ... in loop to iterate over badlist
and check the type for
each value. For each value that is a string, use the append
method
to add it to goodlist
. Then print the results of goodlist
.
badlist = [42, 'purple', (90210, 58), 100, 'monkey', 'dishwasher'] goodlist = []