Question: python The list npets generated by running the following code pets =[ 'dog', 'cat', 'hamster'] npets =[] for p in pets: if (p!= 'dog ')
The list npets generated by running the following code pets =[ 'dog', 'cat', 'hamster'] npets =[] for p in pets: if (p!= 'dog ') : npets.append (p) will be
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
