Write a program to print odd numbers in a list by userentered input : #WAP to print odd numbers in a list.
list2 = [ list2 for list2 in input("list").split(",")]

odd_nos = [ num for num in list2 if num % 2 !=0]

print ("Odd numbers in the list: ",odd_nos)

I cant runthis program it came type error like:

odd_nos =[ num for num in list2 if num % 2 !=0]

TypeError: not all arguments converted during string formatting