- Write a python program to take a set as user input, thencalculate the number of odd number in the set.
*** Set with only contain integervalues.
Sample of user Input:
{1, 2, 3, 6, 8, 98, 17}
Sample Output:
Number of odd numbers in the set is:3
*** 1, 3, 17 are the odd numbers.
- Write a python program to take a set as user input andcalculate the number of palindromes in the set.
*** Set will have only strings. Butstring can be of either digits or letters. Like, “124421”, “hello”etc.
Sample of user Input:
{“madam”,
OR
OR