Write a python program to print odd numbers in a List


Topic: Write a python program to print odd numbers in a List

Solution

  
list1 = [10, 21, 4, 45, 66, 93, 11]  
   
odd_nos = list(filter(lambda x: (x % 2 != 0), list1)) 
  
print("Odd numbers in the list: ", odd_nos)



List all Python Programs