Question: Python Help Use a for in loop to iterate over `oldlist` and check the type for each value. For each value that is a string,

Python Help

Use a for in loop to iterate over `oldlist` and check the type for each value.

For each value that is a string, use the `append` method

to add it to `newlist`.

Then print the results of `newlist`.

oldlist = [6, orange, (902, 58), 100, lion, tiger]

newlist = []

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!