Write Python Program Take Set User Input Calculate Number Odd Number Set Set Contain Integ Q37285217

  1. 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.

  1. 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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.