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
Get step-by-step solutions from verified subject matter experts
