1. a. Write a program to get the list of even numbers upto a given number.
b. Write a program to get the ascii distance between two characters.
c. Write a program to get the binary form of a given number.
d. Write a program to convert base36 to octal.
2. a. Write a program to get the number of vowels in the input string (No control flow allowed)
b. Write a program to check whether a given number has even number of 1’s in its binary representation (No control flow, the number can be in any base)
c. Write a program to sort given list of strings in the order of their vowel counts.
3. a. Write a program to return the top ‘n’ most frequently occurring chars and their respective counts. E.g. aaaaaabbbbcccc, 2 should return [(a 5) (b 4)]
b. Write a program to convert a given number into a given base. Note: Convert the given number into a string in the given base. Valid base is 2 <= base <= 36 Raise exceptions similar to how int (“XX”, YY) does (play in the console to find what errors it raises). Handle negative numbers just like bin and oct do.
4. a. Write a program to sort words in a file and put them in another file. The output file should have only lowecase words, so any upper case words from source must be lowered. (Handle exceptions)
b. Write a program return a list in which the duplicates are removed, and the items are sorted from a given input list of strings.
5. Write a program to test whether given strings are anagrams are not.
6. a. Write a class Person with attributes name, age, weight (kgs), height (ft) and takes them through the constructor and exposes a method get_bmi_result() which returns one of “underweight”, “healthy”, “obese”
b. Write a program to convert the passed in positive integer number into its prime factorization form. Note: If number = a1 ^ p1 * a2 ^ p2 … where a1, a2 are primes and p1, p2 are powers >=1 then we represent that using lists and tuples in python as [(a1, p1), (a2, p2), …] e.g.[(2,1), (5,1)] is the correct prime factorization of 10