1.Define a function to convert a binary number to the corresponding decimal number
2.Define a function to convert a decimal number to the corresponding binary number
3.Design a Python script to determine the difference in date for given two dates in YYYY:MM:DD format(0 <= YYYY <= 9999, 1 <= MM <= 12, 1 <= DD <= 31) following the leap year rules. Return the total number of days existing between the two dates.
4.Define a function to print the sequence of spiral pattern elements for a given N x N matrix
5.Count the number of strings present in the given string
6.Define a function to merge the characters of two strings alternatively. The remaining characters of the longer string are printed in the same order at the end.