Jessica Jones wrote:Yes, after I removed the even number and multiples of 9, then I want to do remove odd number, how can I do that?
You have already been given all the hints you need.
Your code currently checks for even numbers, right? If you know how to check if a number is even, then checking if a number is NOT even is very similar.
Also, Dave pointed out that once you remove multiples of 9 and even numbers from your list, all you will be left with are odd numbers. That means you can basically iterate over the list again and remove each remaining item without even checking them against any condition. Because of what you already did to the list previously, you are guaranteed to have only odd numbers in there, so making a check for odd number is pretty much a redundant effort.