"""Write a python function to remove first and last occurrence of a given character from the string."""

def remove_Occ(

Write a python function to remove first and last occurrence of a given character from the string.
The function should be named `remove_Occ`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert remove_Occ("hello","l") == "heo"
assert remove_Occ("abcda","a") == "bcd"
assert remove_Occ("PHP","P") == "H"


"""Write a function to sort a given matrix in ascending order according to the sum of its rows."""

def sort_matrix(

Write a function to sort a given matrix in ascending order according to the sum of its rows.
The function should be named `sort_matrix`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to count the most common words in a dictionary."""

def count_common(

Write a function to count the most common words in a dictionary.
The function should be named `count_common`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_common(['red','green','black','pink','black','white','black','eyes','white','black','orange','pink','pink','red','red','white','orange','white',"black",'pink','green','green','pink','green','pink','white','orange',"orange",'red']) == [('pink', 6), ('black', 5), ('white', 5), ('red', 4)]
assert count_common(['one', 'two', 'three', 'four', 'five', 'one', 'two', 'one', 'three', 'one']) == [('one', 4), ('two', 2), ('three', 2), ('four', 1)]
assert count_common(['Facebook', 'Apple', 'Amazon', 'Netflix', 'Google', 'Apple', 'Netflix', 'Amazon']) == [('Apple', 2), ('Amazon', 2), ('Netflix', 2), ('Facebook', 1)]


"""Write a python function to find the volume of a triangular prism."""

def find_Volume(

Write a python function to find the volume of a triangular prism.
The function should be named `find_Volume`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert find_Volume(10,8,6) == 240
assert find_Volume(3,2,2) == 6
assert find_Volume(1,2,1) == 1


"""Write a function to split a string at lowercase letters."""

def split_lowerstring(

Write a function to split a string at lowercase letters.
The function should be named `split_lowerstring`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert split_lowerstring("AbCd")==['bC','d']
assert split_lowerstring("Python")==['y', 't', 'h', 'o', 'n']
assert split_lowerstring("Programming")==['r', 'o', 'g', 'r', 'a', 'm', 'm', 'i', 'n', 'g']


"""Write a function to find sequences of lowercase letters joined with an underscore."""

def text_lowercase_underscore(

Write a function to find sequences of lowercase letters joined with an underscore.
The function should be named `text_lowercase_underscore`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert text_lowercase_underscore("aab_cbbbc")==('Found a match!')
assert text_lowercase_underscore("aab_Abbbc")==('Not matched!')
assert text_lowercase_underscore("Aaab_abbbc")==('Not matched!')


"""Write a function to find the perimeter of a square."""

def square_perimeter(

Write a function to find the perimeter of a square.
The function should be named `square_perimeter`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert square_perimeter(10)==40
assert square_perimeter(5)==20
assert square_perimeter(4)==16


"""Write a function to remove characters from the first string which are present in the second string."""

def remove_dirty_chars(

Write a function to remove characters from the first string which are present in the second string.
The function should be named `remove_dirty_chars`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert remove_dirty_chars("probasscurve", "pros") == 'bacuve'
assert remove_dirty_chars("digitalindia", "talent") == 'digiidi'
assert remove_dirty_chars("exoticmiles", "toxic") == 'emles'


"""Write a function to find whether a given array of integers contains any duplicate element."""

def test_duplicate(

Write a function to find whether a given array of integers contains any duplicate element.
The function should be named `test_duplicate`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert test_duplicate(([1,2,3,4,5]))==False
assert test_duplicate(([1,2,3,4, 4]))==True
assert test_duplicate([1,1,2,2,3,3,4,4,5])==True


"""Write a function to check if the given number is woodball or not."""

def is_woodall(

Write a function to check if the given number is woodball or not.
The function should be named `is_woodall`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_woodall(383) == True
assert is_woodall(254) == False
assert is_woodall(200) == False


"""Write a function to find m number of multiples of n."""

def multiples_of_num(

Write a function to find m number of multiples of n.
The function should be named `multiples_of_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the first duplicate element in a given array of integers."""

def find_first_duplicate(

Write a function to find the first duplicate element in a given array of integers.
The function should be named `find_first_duplicate`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert find_first_duplicate(([1, 2, 3, 4, 4, 5]))==4
assert find_first_duplicate([1, 2, 3, 4])==-1
assert find_first_duplicate([1, 1, 2, 3, 3, 2, 2])==1


"""Write a python function to find the maximum sum of elements of list in a list of lists."""

def maximum_Sum(

Write a python function to find the maximum sum of elements of list in a list of lists.
The function should be named `maximum_Sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to convert the given binary number to its decimal equivalent."""

def binary_to_decimal(

Write a function to convert the given binary number to its decimal equivalent.
The function should be named `binary_to_decimal`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert binary_to_decimal(100) == 4
assert binary_to_decimal(1011) == 11
assert binary_to_decimal(1101101) == 109


"""Write a python function to find the product of non-repeated elements in a given array."""

def find_Product(

Write a python function to find the product of non-repeated elements in a given array.
The function should be named `find_Product`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to check if the given tuple list has all k elements."""

def check_k_elements(

Write a function to check if the given tuple list has all k elements.
The function should be named `check_k_elements`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to remove all digits from a list of strings."""

def remove(

Write a python function to remove all digits from a list of strings.
The function should be named `remove`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert remove(['4words', '3letters', '4digits']) == ['words', 'letters', 'digits']
assert remove(['28Jan','12Jan','11Jan']) == ['Jan','Jan','Jan']
assert remove(['wonder1','wonder2','wonder3']) == ['wonder','wonder','wonder']


"""Write a python function to find binomial co-efficient."""

def binomial_Coeff(

Write a python function to find binomial co-efficient.
The function should be named `binomial_Coeff`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert binomial_Coeff(5,2) == 10
assert binomial_Coeff(4,3) == 4
assert binomial_Coeff(3,2) == 3


"""Write a python function to find the element occurring odd number of times."""

def get_Odd_Occurrence(

Write a python function to find the element occurring odd number of times.
The function should be named `get_Odd_Occurrence`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count all the substrings starting and ending with same characters."""

def count_Substring_With_Equal_Ends(

Write a python function to count all the substrings starting and ending with same characters.
The function should be named `count_Substring_With_Equal_Ends`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Substring_With_Equal_Ends("abc") == 3
assert count_Substring_With_Equal_Ends("abcda") == 6
assert count_Substring_With_Equal_Ends("ab") == 2


"""Write a function to find the top k integers that occur most frequently from given lists of sorted and distinct integers using heap queue algorithm."""

def func(

Write a function to find the top k integers that occur most frequently from given lists of sorted and distinct integers using heap queue algorithm.
The function should be named `func`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the largest prime factor of a given number."""

def max_Prime_Factors(

Write a python function to find the largest prime factor of a given number.
The function should be named `max_Prime_Factors`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert max_Prime_Factors(15) == 5
assert max_Prime_Factors(6) == 3
assert max_Prime_Factors(2) == 2


"""Write a python function to convert a decimal number to binary number."""

def decimal_To_Binary(

Write a python function to convert a decimal number to binary number.
The function should be named `decimal_To_Binary`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert decimal_To_Binary(10) == 1010
assert decimal_To_Binary(1) == 1
assert decimal_To_Binary(20) == 10100


"""Write a python function to find the missing number in a sorted array."""

def find_missing(

Write a python function to find the missing number in a sorted array.
The function should be named `find_missing`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the n-th rectangular number."""

def find_rect_num(

Write a function to find the n-th rectangular number.
The function should be named `find_rect_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert find_rect_num(4) == 20
assert find_rect_num(5) == 30
assert find_rect_num(6) == 42


"""Write a python function to find the nth digit in the proper fraction of two given numbers."""

def find_Nth_Digit(

Write a python function to find the nth digit in the proper fraction of two given numbers.
The function should be named `find_Nth_Digit`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert find_Nth_Digit(1,2,1) == 5
assert find_Nth_Digit(3,5,1) == 6
assert find_Nth_Digit(5,6,5) == 3


"""Write a function to sort a given mixed list of integers and strings."""

def sort_mixed_list(

Write a function to sort a given mixed list of integers and strings.
The function should be named `sort_mixed_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert sort_mixed_list([19,'red',12,'green','blue', 10,'white','green',1])==[1, 10, 12, 19, 'blue', 'green', 'green', 'red', 'white']
assert sort_mixed_list([19,'red',12,'green','blue', 10,'white','green',1])==[1, 10, 12, 19, 'blue', 'green', 'green', 'red', 'white']
assert sort_mixed_list([19,'red',12,'green','blue', 10,'white','green',1])==[1, 10, 12, 19, 'blue', 'green', 'green', 'red', 'white']


"""Write a function to find the division of first even and odd number of a given list."""

def div_even_odd(

Write a function to find the division of first even and odd number of a given list.
The function should be named `div_even_odd`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to check if the letters of a given string can be rearranged so that two characters that are adjacent to each other are different."""

def rearange_string(

Write a function to check if the letters of a given string can be rearranged so that two characters that are adjacent to each other are different.
The function should be named `rearange_string`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert rearange_string("aab")==('aba')
assert rearange_string("aabb")==('abab')
assert rearange_string("abccdd")==('cdabcd')


"""Write a function to find frequency of the elements in a given list of lists using collections module."""

def freq_element(

Write a function to find frequency of the elements in a given list of lists using collections module.
The function should be named `freq_element`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to filter even numbers using lambda function."""

def filter_evennumbers(

Write a function to filter even numbers using lambda function.
The function should be named `filter_evennumbers`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the sum of repeated elements in a given array."""

def find_Sum(

Write a python function to find the sum of repeated elements in a given array.
The function should be named `find_Sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find sequences of lowercase letters joined with an underscore using regex."""

def text_match(

Write a function to find sequences of lowercase letters joined with an underscore using regex.
The function should be named `text_match`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert text_match("aab_cbbbc") == 'Found a match!'
assert text_match("aab_Abbbc") == 'Not matched!'
assert text_match("Aaab_abbbc") == 'Not matched!'


"""Write a function that matches a word at the beginning of a string."""

def text_match_string(

Write a function that matches a word at the beginning of a string.
The function should be named `text_match_string`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert text_match_string(" python")==('Not matched!')
assert text_match_string("python")==('Found a match!')
assert text_match_string("  lang")==('Not matched!')


"""Write a function to find the gcd of the given array elements."""

def get_gcd(

Write a function to find the gcd of the given array elements.
The function should be named `get_gcd`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to determine whether all the numbers are different from each other are not."""

def test_distinct(

Write a python function to determine whether all the numbers are different from each other are not.
The function should be named `test_distinct`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert test_distinct([1,5,7,9]) == True
assert test_distinct([2,4,5,5,7,9]) == False
assert test_distinct([1,2,3]) == True


"""Write a python function to find the last digit when factorial of a divides factorial of b."""

def compute_Last_Digit(

Write a python function to find the last digit when factorial of a divides factorial of b.
The function should be named `compute_Last_Digit`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert compute_Last_Digit(2,4) == 2
assert compute_Last_Digit(6,8) == 6
assert compute_Last_Digit(1,2) == 2


"""Write a python function to set all odd bits of a given number."""

def odd_bit_set_number(

Write a python function to set all odd bits of a given number.
The function should be named `odd_bit_set_number`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert odd_bit_set_number(10) == 15
assert odd_bit_set_number(20) == 21
assert odd_bit_set_number(30) == 31


"""Write a function to extract every first or specified element from a given two-dimensional list."""

def specified_element(

Write a function to extract every first or specified element from a given two-dimensional list.
The function should be named `specified_element`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the list with minimum length using lambda function."""

def min_length_list(

Write a function to find the list with minimum length using lambda function.
The function should be named `min_length_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to print check if the triangle is equilateral or not."""

def check_equilateral(

Write a function to print check if the triangle is equilateral or not.
The function should be named `check_equilateral`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_equilateral(6,8,12)==False
assert check_equilateral(6,6,12)==False
assert check_equilateral(6,6,6)==True


"""Write a function to caluclate area of a parallelogram."""

def parallelogram_area(

Write a function to caluclate area of a parallelogram.
The function should be named `parallelogram_area`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert parallelogram_area(10,20)==200
assert parallelogram_area(15,20)==300
assert parallelogram_area(8,9)==72


"""Write a python function to check whether the first and last characters of a given string are equal or not."""

def check_Equality(

Write a python function to check whether the first and last characters of a given string are equal or not.
The function should be named `check_Equality`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_Equality("abcda") == "Equal"
assert check_Equality("ab") == "Not Equal"
assert check_Equality("mad") == "Not Equal"


"""Write a function to sort the given array by using counting sort."""

def counting_sort(

Write a function to sort the given array by using counting sort.
The function should be named `counting_sort`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find t-nth term of geometric series."""

def tn_gp(

Write a function to find t-nth term of geometric series.
The function should be named `tn_gp`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check if a given number is one less than twice its reverse."""

def check(

Write a python function to check if a given number is one less than twice its reverse.
The function should be named `check`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check(70) == False
assert check(23) == False
assert check(73) == True


"""Write a python function to find the largest number that can be formed with the given digits."""

def find_Max_Num(

Write a python function to find the largest number that can be formed with the given digits.
The function should be named `find_Max_Num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the given two integers have opposite sign or not."""

def opposite_Signs(

Write a python function to check whether the given two integers have opposite sign or not.
The function should be named `opposite_Signs`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert opposite_Signs(1,-2) == True
assert opposite_Signs(3,2) == False
assert opposite_Signs(-10,-10) == False


"""Write a function to find the nth octagonal number."""

def is_octagonal(

Write a function to find the nth octagonal number.
The function should be named `is_octagonal`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_octagonal(5) == 65
assert is_octagonal(10) == 280
assert is_octagonal(15) == 645


"""Write a function to find the maximum length of the subsequence with difference between adjacent elements for the given array."""

def max_len_sub(

Write a function to find the maximum length of the subsequence with difference between adjacent elements for the given array.
The function should be named `max_len_sub`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count number of substrings with the sum of digits equal to their length."""

def count_Substrings(

Write a python function to count number of substrings with the sum of digits equal to their length.
The function should be named `count_Substrings`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Substrings('112112',6) == 6
assert count_Substrings('111',3) == 6
assert count_Substrings('1101112',7) == 12


"""Write a python function to find smallest number in a list."""

def smallest_num(

Write a python function to find smallest number in a list.
The function should be named `smallest_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the maximum difference between available pairs in the given tuple list."""

def max_difference(

Write a function to find the maximum difference between available pairs in the given tuple list.
The function should be named `max_difference`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to sort a list of tuples using lambda."""

def subject_marks(

Write a function to sort a list of tuples using lambda.
The function should be named `subject_marks`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert subject_marks([('English', 88), ('Science', 90), ('Maths', 97), ('Social sciences', 82)])==[('Social sciences', 82), ('English', 88), ('Science', 90), ('Maths', 97)]
assert subject_marks([('Telugu',49),('Hindhi',54),('Social',33)])==([('Social',33),('Telugu',49),('Hindhi',54)])
assert subject_marks([('Physics',96),('Chemistry',97),('Biology',45)])==([('Biology',45),('Physics',96),('Chemistry',97)])


"""Write a function of recursion list sum."""

def recursive_list_sum(

Write a function of recursion list sum.
The function should be named `recursive_list_sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count positive numbers in a list."""

def pos_count(

Write a python function to count positive numbers in a list.
The function should be named `pos_count`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the number of ways to partition a set of bell numbers."""

def bell_number(

Write a function to find the number of ways to partition a set of bell numbers.
The function should be named `bell_number`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the given array is monotonic or not."""

def is_Monotonic(

Write a python function to check whether the given array is monotonic or not.
The function should be named `is_Monotonic`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_Monotonic([6, 5, 4, 4]) == True
assert is_Monotonic([1, 2, 2, 3]) == True
assert is_Monotonic([1, 3, 2]) == False


"""Write a function to check whether a list contains the given sublist or not."""

def is_sublist(

Write a function to check whether a list contains the given sublist or not.
The function should be named `is_sublist`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find whether all the given tuples have equal length or not."""

def get_equal(

Write a function to find whether all the given tuples have equal length or not.
The function should be named `get_equal`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert get_equal([(11, 22, 33), (44, 55, 66)], 3) == 'All tuples have same length'
assert get_equal([(1, 2, 3), (4, 5, 6, 7)], 3) == 'All tuples do not have same length'
assert get_equal([(1, 2), (3, 4)], 2) == 'All tuples have same length'


"""Write a function to sort a list of elements using comb sort."""

def comb_sort(

Write a function to sort a list of elements using comb sort.
The function should be named `comb_sort`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the given number can be represented as difference of two squares or not."""

def dif_Square(

Write a python function to check whether the given number can be represented as difference of two squares or not.
The function should be named `dif_Square`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert dif_Square(5) == True
assert dif_Square(10) == False
assert dif_Square(15) == True


"""Write a function to split the given string with multiple delimiters by using regex."""

def multiple_split(

Write a function to split the given string with multiple delimiters by using regex.
The function should be named `multiple_split`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert multiple_split('Forces of the \ndarkness*are coming into the play.') == ['Forces of the ', 'darkness', 'are coming into the play.']
assert multiple_split('Mi Box runs on the \n Latest android*which has google assistance and chromecast.') == ['Mi Box runs on the ', ' Latest android', 'which has google assistance and chromecast.']
assert multiple_split('Certain services\nare subjected to change*over the seperate subscriptions.') == ['Certain services', 'are subjected to change', 'over the seperate subscriptions.']


"""Write a function to check whether it follows the sequence given in the patterns array."""

def is_samepatterns(

Write a function to check whether it follows the sequence given in the patterns array.
The function should be named `is_samepatterns`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_samepatterns(["red","green","green"], ["a", "b", "b"])==True
assert is_samepatterns(["red","green","greenn"], ["a","b","b"])==False
assert is_samepatterns(["red","green","greenn"], ["a","b"])==False


"""Write a function to find tuples which have all elements divisible by k from the given list of tuples."""

def find_tuples(

Write a function to find tuples which have all elements divisible by k from the given list of tuples.
The function should be named `find_tuples`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count the number of squares in a rectangle."""

def count_Squares(

Write a python function to count the number of squares in a rectangle.
The function should be named `count_Squares`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Squares(4,3) == 20
assert count_Squares(2,2) == 5
assert count_Squares(1,1) == 1


"""Write a python function to find the difference between sum of even and odd digits."""

def is_Diff(

Write a python function to find the difference between sum of even and odd digits.
The function should be named `is_Diff`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_Diff (12345) == False
assert is_Diff(1212112) == True
assert is_Diff(1212) == False


"""Write a python function to find number of integers with odd number of set bits."""

def count_With_Odd_SetBits(

Write a python function to find number of integers with odd number of set bits.
The function should be named `count_With_Odd_SetBits`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_With_Odd_SetBits(5) == 3
assert count_With_Odd_SetBits(10) == 5
assert count_With_Odd_SetBits(15) == 8


"""Write a python function to check whether the length of the word is odd or not."""

def word_len(

Write a python function to check whether the length of the word is odd or not.
The function should be named `word_len`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert word_len("Hadoop") == False
assert word_len("great") == True
assert word_len("structure") == True


"""Write a function to find the nth tetrahedral number."""

def tetrahedral_number(

Write a function to find the nth tetrahedral number.
The function should be named `tetrahedral_number`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert tetrahedral_number(5) == 35.0
assert tetrahedral_number(6) == 56.0
assert tetrahedral_number(7) == 84.0


"""Write a function to zip the two given tuples."""

def zip_tuples(

Write a function to zip the two given tuples.
The function should be named `zip_tuples`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the volume of a sphere."""

def volume_sphere(

Write a function to find the volume of a sphere.
The function should be named `volume_sphere`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the character made by adding all the characters of the given string."""

def get_Char(

Write a python function to find the character made by adding all the characters of the given string.
The function should be named `get_Char`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert get_Char("abc") == "f"
assert get_Char("gfg") == "t"
assert get_Char("ab") == "c"


"""Write a function to find the n-th number in newman conway sequence."""

def sequence(

Write a function to find the n-th number in newman conway sequence.
The function should be named `sequence`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert sequence(10) == 6
assert sequence(2) == 1
assert sequence(3) == 2


"""Write a function to find the surface area of a sphere."""

def surfacearea_sphere(

Write a function to find the surface area of a sphere.
The function should be named `surfacearea_sphere`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find nth centered hexagonal number."""

def centered_hexagonal_number(

Write a function to find nth centered hexagonal number.
The function should be named `centered_hexagonal_number`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert centered_hexagonal_number(10) == 271
assert centered_hexagonal_number(2) == 7
assert centered_hexagonal_number(9) == 217


"""Write a function to merge three dictionaries into a single expression."""

def merge_dictionaries_three(

Write a function to merge three dictionaries into a single expression.
The function should be named `merge_dictionaries_three`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert merge_dictionaries_three({ "R": "Red", "B": "Black", "P": "Pink" }, { "G": "Green", "W": "White" },{ "O": "Orange", "W": "White", "B": "Black" })=={'B': 'Black', 'R': 'Red', 'P': 'Pink', 'G': 'Green', 'W': 'White', 'O': 'Orange'}
assert merge_dictionaries_three({ "R": "Red", "B": "Black", "P": "Pink" }, { "G": "Green", "W": "White" },{"L":"lavender","B":"Blue"})=={'W': 'White', 'P': 'Pink', 'B': 'Black', 'R': 'Red', 'G': 'Green', 'L': 'lavender'}
assert merge_dictionaries_three({ "R": "Red", "B": "Black", "P": "Pink" },{"L":"lavender","B":"Blue"},{ "G": "Green", "W": "White" })=={'B': 'Black', 'P': 'Pink', 'R': 'Red', 'G': 'Green', 'L': 'lavender', 'W': 'White'}


"""Write a function to get the frequency of the elements in a list."""

def freq_count(

Write a function to get the frequency of the elements in a list.
The function should be named `freq_count`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the closest smaller number than n."""

def closest_num(

Write a function to find the closest smaller number than n.
The function should be named `closest_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert closest_num(11) == 10
assert closest_num(7) == 6
assert closest_num(12) == 11


"""Write a python function to find the length of the longest word."""

def len_log(

Write a python function to find the length of the longest word.
The function should be named `len_log`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert len_log(["python","PHP","bigdata"]) == 7
assert len_log(["a","ab","abc"]) == 3
assert len_log(["small","big","tall"]) == 5


"""Write a function to check if a substring is present in a given list of string values."""

def find_substring(

Write a function to check if a substring is present in a given list of string values.
The function should be named `find_substring`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert find_substring(["red", "black", "white", "green", "orange"],"ack")==True
assert find_substring(["red", "black", "white", "green", "orange"],"abc")==False
assert find_substring(["red", "black", "white", "green", "orange"],"ange")==True


"""Write a function to check whether the given number is undulating or not."""

def is_undulating(

Write a function to check whether the given number is undulating or not.
The function should be named `is_undulating`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_undulating("1212121") == True
assert is_undulating("1991") == False
assert is_undulating("121") == True


"""Write a function to calculate the value of 'a' to the power 'b'."""

def power(

Write a function to calculate the value of 'a' to the power 'b'.
The function should be named `power`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert power(3,4) == 81
assert power(2,3) == 8
assert power(5,5) == 3125


"""Write a function to extract the index minimum value record from the given tuples."""

def index_minimum(

Write a function to extract the index minimum value record from the given tuples.
The function should be named `index_minimum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert index_minimum([('Rash', 143), ('Manjeet', 200), ('Varsha', 100)]) == 'Varsha'
assert index_minimum([('Yash', 185), ('Dawood', 125), ('Sanya', 175)]) == 'Dawood'
assert index_minimum([('Sai', 345), ('Salman', 145), ('Ayesha', 96)]) == 'Ayesha'


"""Write a python function to find the minimum length of sublist."""

def Find_Min_Length(

Write a python function to find the minimum length of sublist.
The function should be named `Find_Min_Length`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the number of divisors of a given integer."""

def divisor(

Write a python function to find the number of divisors of a given integer.
The function should be named `divisor`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert divisor(15) == 4
assert divisor(12) == 6
assert divisor(9) == 3


"""Write a function to find frequency count of list of lists."""

def frequency_lists(

Write a function to find frequency count of list of lists.
The function should be named `frequency_lists`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to multiply all the numbers in a list and divide with the length of the list."""

def multiply_num(

Write a function to multiply all the numbers in a list and divide with the length of the list.
The function should be named `multiply_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to convert the given decimal number to its binary equivalent."""

def decimal_to_binary(

Write a function to convert the given decimal number to its binary equivalent.
The function should be named `decimal_to_binary`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert decimal_to_binary(8) == '1000'
assert decimal_to_binary(18) == '10010'
assert decimal_to_binary(7) == '111'


"""Write a function to find the next smallest palindrome of a specified number."""

def next_smallest_palindrome(

Write a function to find the next smallest palindrome of a specified number.
The function should be named `next_smallest_palindrome`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert next_smallest_palindrome(99)==101
assert next_smallest_palindrome(1221)==1331
assert next_smallest_palindrome(120)==121


"""Write a function to find the kth element in the given array."""

def kth_element(

Write a function to find the kth element in the given array.
The function should be named `kth_element`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to convert snake case string to camel case string."""

def snake_to_camel(

Write a function to convert snake case string to camel case string.
The function should be named `snake_to_camel`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert snake_to_camel('python_program')=='PythonProgram'
assert snake_to_camel('python_language')==('PythonLanguage')
assert snake_to_camel('programming_language')==('ProgrammingLanguage')


"""Write a function to find eulerian number a(n, m)."""

def eulerian_num(

Write a function to find eulerian number a(n, m).
The function should be named `eulerian_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert eulerian_num(3, 1) == 4
assert eulerian_num(4, 1) == 11
assert eulerian_num(5, 3) == 26


"""Write a function to sort each sublist of strings in a given list of lists using lambda function."""

def sort_sublists(

Write a function to sort each sublist of strings in a given list of lists using lambda function.
The function should be named `sort_sublists`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert sort_sublists((["green", "orange"], ["black", "white"], ["white", "black", "orange"]))==[['green', 'orange'], ['black', 'white'], ['black', 'orange', 'white']]
assert sort_sublists(([" red ","green" ],["blue "," black"],[" orange","brown"]))==[[' red ', 'green'], [' black', 'blue '], [' orange', 'brown']]
assert sort_sublists((["zilver","gold"], ["magnesium","aluminium"], ["steel", "bronze"]))==[['gold', 'zilver'],['aluminium', 'magnesium'], ['bronze', 'steel']]


"""Write a python function to count true booleans in the given list."""

def count(

Write a python function to count true booleans in the given list.
The function should be named `count`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count([True,False,True]) == 2
assert count([False,False]) == 0
assert count([True,True,True]) == 3


"""Write a function to add the given list to the given tuples."""

def add_lists(

Write a function to add the given list to the given tuples.
The function should be named `add_lists`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count hexadecimal numbers for a given range."""

def count_Hexadecimal(

Write a python function to count hexadecimal numbers for a given range.
The function should be named `count_Hexadecimal`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Hexadecimal(10,15) == 6
assert count_Hexadecimal(2,4) == 0
assert count_Hexadecimal(15,16) == 1


"""Write a function to merge multiple sorted inputs into a single sorted iterator using heap queue algorithm."""

def merge_sorted_list(

Write a function to merge multiple sorted inputs into a single sorted iterator using heap queue algorithm.
The function should be named `merge_sorted_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the count of rotations of a binary string with odd value."""

def odd_Equivalent(

Write a python function to find the count of rotations of a binary string with odd value.
The function should be named `odd_Equivalent`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert odd_Equivalent("011001",6) == 3
assert odd_Equivalent("11011",5) == 4
assert odd_Equivalent("1010",4) == 2


"""Write a function to extract the ranges that are missing from the given list with the given start range and end range values."""

def extract_missing(

Write a function to extract the ranges that are missing from the given list with the given start range and end range values.
The function should be named `extract_missing`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find common elements in given nested lists. * list item * list item * list item * list item"""

def common_in_nested_lists(

Write a function to find common elements in given nested lists. * list item * list item * list item * list item
The function should be named `common_in_nested_lists`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the perimeter of a cylinder."""

def perimeter(

Write a python function to find the perimeter of a cylinder.
The function should be named `perimeter`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert perimeter(2,4) == 12
assert perimeter(1,2) == 6
assert perimeter(3,1) == 8


"""Write a function to check if a string represents an integer or not."""

def check_integer(

Write a function to check if a string represents an integer or not.
The function should be named `check_integer`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_integer("python")==False
assert check_integer("1")==True
assert check_integer("12345")==True


"""Write a function to assign frequency to each tuple in the given tuple list."""

def assign_freq(

Write a function to assign frequency to each tuple in the given tuple list.
The function should be named `assign_freq`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to check whether all dictionaries in a list are empty or not."""

def empty_dit(

Write a function to check whether all dictionaries in a list are empty or not.
The function should be named `empty_dit`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert empty_dit([{},{},{}])==True
assert empty_dit([{1,2},{},{}])==False
assert empty_dit({})==True


"""Write a function to convert a given tuple of positive integers into an integer."""

def tuple_to_int(

Write a function to convert a given tuple of positive integers into an integer.
The function should be named `tuple_to_int`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert tuple_to_int((1,2,3))==123
assert tuple_to_int((4,5,6))==456
assert tuple_to_int((5,6,7))==567


"""Write a function to convert all possible convertible elements in the list to float."""

def list_to_float(

Write a function to convert all possible convertible elements in the list to float.
The function should be named `list_to_float`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""[link text](https:// [link text](https:// [link text](https://)))write a function to convert a string to a list."""

def string_to_list(

[link text](https:// [link text](https:// [link text](https://)))write a function to convert a string to a list.
The function should be named `string_to_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert string_to_list("python programming")==['python','programming']
assert string_to_list("lists tuples strings")==['lists','tuples','strings']
assert string_to_list("write a program")==['write','a','program']


"""Write a python function to find the element that appears only once in a sorted array."""

def search(

Write a python function to find the element that appears only once in a sorted array.
The function should be named `search`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the maximum product from the pairs of tuples within a given list."""

def max_product_tuple(

Write a function to find the maximum product from the pairs of tuples within a given list.
The function should be named `max_product_tuple`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the triplet with sum of the given array"""

def check_triplet(

Write a function to find the triplet with sum of the given array
The function should be named `check_triplet`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find n’th smart number."""

def smartNumber(

Write a function to find n’th smart number.
The function should be named `smartNumber`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert smartNumber(1) == 30
assert smartNumber(50) == 273
assert smartNumber(1000) == 2664


"""Write a function to sum all amicable numbers from 1 to a specified number."""

def amicable_numbers_sum(

Write a function to sum all amicable numbers from 1 to a specified number.
The function should be named `amicable_numbers_sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert amicable_numbers_sum(999)==504
assert amicable_numbers_sum(9999)==31626
assert amicable_numbers_sum(99)==0


"""Write a function to get the angle of a complex number."""

def angle_complex(

Write a function to get the angle of a complex number.
The function should be named `angle_complex`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the maximum difference between the number of 0s and number of 1s in any sub-string of the given binary string."""

def find_length(

Write a function to find the maximum difference between the number of 0s and number of 1s in any sub-string of the given binary string.
The function should be named `find_length`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the sum of common divisors of two given numbers."""

def sum(

Write a python function to find the sum of common divisors of two given numbers.
The function should be named `sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to multiply two integers without using the * operator in python."""

def multiply_int(

Write a function to multiply two integers without using the * operator in python.
The function should be named `multiply_int`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert multiply_int(10,20)==200
assert multiply_int(5,10)==50
assert multiply_int(4,8)==32


"""Write a function to shortlist words that are longer than n from a given list of words."""

def long_words(

Write a function to shortlist words that are longer than n from a given list of words.
The function should be named `long_words`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert long_words(3,"python is a programming language")==['python','programming','language']
assert long_words(2,"writing a program")==['writing','program']
assert long_words(5,"sorting list")==['sorting']


"""Write a function to calculate magic square."""

def magic_square_test(

Write a function to calculate magic square.
The function should be named `magic_square_test`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the item with maximum frequency in a given list."""

def max_occurrences(

Write a function to find the item with maximum frequency in a given list.
The function should be named `max_occurrences`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to reverse only the vowels of a given string."""

def reverse_vowels(

Write a python function to reverse only the vowels of a given string.
The function should be named `reverse_vowels`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert reverse_vowels("Python") == "Python"
assert reverse_vowels("USA") == "ASU"
assert reverse_vowels("ab") == "ab"


"""Write a function to convert tuple to a string."""

def tup_string(

Write a function to convert tuple to a string.
The function should be named `tup_string`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to calculate the sum of the negative numbers of a given list of numbers using lambda function."""

def sum_negativenum(

Write a function to calculate the sum of the negative numbers of a given list of numbers using lambda function.
The function should be named `sum_negativenum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the last element of given array is even or odd after performing an operation p times."""

def check_last(

Write a python function to check whether the last element of given array is even or odd after performing an operation p times.
The function should be named `check_last`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_last([5,7,10],3,1) == "ODD"
assert check_last([2,3],2,3) == "EVEN"
assert check_last([1,2,3],3,1) == "ODD"


"""Write a function to find the nth hexagonal number."""

def hexagonal_num(

Write a function to find the nth hexagonal number.
The function should be named `hexagonal_num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert hexagonal_num(10) == 190
assert hexagonal_num(5) == 45
assert hexagonal_num(7) == 91


"""Write a function to calculate electricity bill."""

def cal_electbill(

Write a function to calculate electricity bill.
The function should be named `cal_electbill`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert cal_electbill(75)==246.25
assert cal_electbill(265)==1442.75
assert cal_electbill(100)==327.5


"""Write a function to find the ration of zeroes in an array of integers."""

def zero_count(

Write a function to find the ration of zeroes in an array of integers.
The function should be named `zero_count`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the given number can be represented as sum of non-zero powers of 2 or not."""

def is_Sum_Of_Powers_Of_Two(

Write a python function to check whether the given number can be represented as sum of non-zero powers of 2 or not.
The function should be named `is_Sum_Of_Powers_Of_Two`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_Sum_Of_Powers_Of_Two(10) == True
assert is_Sum_Of_Powers_Of_Two(7) == False
assert is_Sum_Of_Powers_Of_Two(14) == True


"""Write a function to find the circumference of a circle."""

def circle_circumference(

Write a function to find the circumference of a circle.
The function should be named `circle_circumference`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert circle_circumference(10)==62.830000000000005
assert circle_circumference(5)==31.415000000000003
assert circle_circumference(4)==25.132


"""Write a function to extract elements that occur singly in the given tuple list."""

def extract_singly(

Write a function to extract elements that occur singly in the given tuple list.
The function should be named `extract_singly`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to sort a list of elements using pancake sort."""

def pancake_sort(

Write a function to sort a list of elements using pancake sort.
The function should be named `pancake_sort`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to count the same pair in three given lists."""

def count_samepair(

Write a function to count the same pair in three given lists.
The function should be named `count_samepair`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find number of lists present in the given tuple."""

def find_lists(

Write a function to find number of lists present in the given tuple.
The function should be named `find_lists`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the sum of absolute differences in all pairs of the given array."""

def sum_Pairs(

Write a python function to find the sum of absolute differences in all pairs of the given array.
The function should be named `sum_Pairs`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the maximum difference between any two elements in a given array."""

def max_Abs_Diff(

Write a python function to find the maximum difference between any two elements in a given array.
The function should be named `max_Abs_Diff`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the ascii value of total characters in a string."""

def ascii_value_string(

Write a function to find the ascii value of total characters in a string.
The function should be named `ascii_value_string`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert ascii_value_string("python")==112
assert ascii_value_string("Program")==80
assert ascii_value_string("Language")==76


"""Write a function to find the maximum total path sum in the given triangle."""

def max_path_sum(

Write a function to find the maximum total path sum in the given triangle.
The function should be named `max_path_sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to divide a number into two parts such that the sum of digits is maximum."""

def sum_digits_twoparts(

Write a function to divide a number into two parts such that the sum of digits is maximum.
The function should be named `sum_digits_twoparts`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert sum_digits_twoparts(35)==17
assert sum_digits_twoparts(7)==7
assert sum_digits_twoparts(100)==19


"""Write a function to find the longest subsequence such that the difference between adjacents is one for the given array."""

def longest_subseq_with_diff_one(

Write a function to find the longest subsequence such that the difference between adjacents is one for the given array.
The function should be named `longest_subseq_with_diff_one`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert longest_subseq_with_diff_one([1, 2, 3, 4, 5, 3, 2], 7) == 6
assert longest_subseq_with_diff_one([10, 9, 4, 5, 4, 8, 6], 7) == 3
assert longest_subseq_with_diff_one([1, 2, 3, 2, 3, 7, 2, 1], 8) == 7


"""Write a python function to find whether the given number is present in the infinite sequence or not."""

def does_Contain_B(

Write a python function to find whether the given number is present in the infinite sequence or not.
The function should be named `does_Contain_B`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert does_Contain_B(1,7,3) == True
assert does_Contain_B(1,-3,5) == False
assert does_Contain_B(3,2,5) == False


"""Write a python function to check whether the given number is co-prime or not."""

def is_coprime(

Write a python function to check whether the given number is co-prime or not.
The function should be named `is_coprime`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_coprime(17,13) == True
assert is_coprime(15,21) == False
assert is_coprime(25,45) == False


"""Write a function to sort the given array by using merge sort."""

def merge_sort(

Write a function to sort the given array by using merge sort.
The function should be named `merge_sort`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the vertex of a parabola."""

def parabola_vertex(

Write a function to find the vertex of a parabola.
The function should be named `parabola_vertex`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to extract every specified element from a given two dimensional list."""

def specified_element(

Write a function to extract every specified element from a given two dimensional list.
The function should be named `specified_element`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to toggle all even bits of a given number."""

def even_bit_toggle_number(

Write a python function to toggle all even bits of a given number.
The function should be named `even_bit_toggle_number`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert even_bit_toggle_number(10) == 0
assert even_bit_toggle_number(20) == 30
assert even_bit_toggle_number(30) == 20


"""Write a function to convert a tuple of string values to a tuple of integer values."""

def tuple_int_str(

Write a function to convert a tuple of string values to a tuple of integer values.
The function should be named `tuple_int_str`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to reflect the run-length encoding from a list."""

def encode_list(

Write a function to reflect the run-length encoding from a list.
The function should be named `encode_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find k number of operations required to make all elements equal."""

def min_Ops(

Write a python function to find k number of operations required to make all elements equal.
The function should be named `min_Ops`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to print the season for the given month and day."""

def month_season(

Write a function to print the season for the given month and day.
The function should be named `month_season`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert month_season('January',4)==('winter')
assert month_season('October',28)==('autumn')
assert month_season('June',6)==('spring')


"""Write a function to find x and y that satisfies ax + by = n."""

def solution(

Write a function to find x and y that satisfies ax + by = n.
The function should be named `solution`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to remove all elements from a given list present in another list."""

def remove_elements(

Write a function to remove all elements from a given list present in another list.
The function should be named `remove_elements`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to calculate the sum of the positive integers of n+(n-2)+(n-4)... (until n-x =< 0)."""

def sum_series(

Write a function to calculate the sum of the positive integers of n+(n-2)+(n-4)... (until n-x =< 0).
The function should be named `sum_series`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert sum_series(6)==12
assert sum_series(10)==30
assert sum_series(9)==25


"""Write a function to calculate the area of a regular polygon."""

def area_polygon(

Write a function to calculate the area of a regular polygon.
The function should be named `area_polygon`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the sum of divisors are same or not."""

def areEquivalent(

Write a python function to check whether the sum of divisors are same or not.
The function should be named `areEquivalent`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert areEquivalent(36,57) == False
assert areEquivalent(2,4) == False
assert areEquivalent(23,47) == True


"""Write a python function to count characters at same position in a given string (lower and uppercase characters) as in english alphabet."""

def count_char_position(

Write a python function to count characters at same position in a given string (lower and uppercase characters) as in english alphabet.
The function should be named `count_char_position`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_char_position("xbcefg") == 2
assert count_char_position("ABcED") == 3
assert count_char_position("AbgdeF") == 5


"""Write a python function to count the pairs with xor as an even number."""

def find_even_Pair(

Write a python function to count the pairs with xor as an even number.
The function should be named `find_even_Pair`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find smallest power of 2 greater than or equal to n."""

def next_Power_Of_2(

Write a python function to find smallest power of 2 greater than or equal to n.
The function should be named `next_Power_Of_2`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert next_Power_Of_2(0) == 1
assert next_Power_Of_2(5) == 8
assert next_Power_Of_2(17) == 32


"""Write a python function to find the frequency of a number in a given array."""

def frequency(

Write a python function to find the frequency of a number in a given array.
The function should be named `frequency`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to calculate the nth pell number."""

def get_pell(

Write a function to calculate the nth pell number.
The function should be named `get_pell`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert get_pell(4) == 12
assert get_pell(7) == 169
assert get_pell(8) == 408


"""Write a function to find sum of the numbers in a list between the indices of a specified range."""

def sum_range_list(

Write a function to find sum of the numbers in a list between the indices of a specified range.
The function should be named `sum_range_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the perimeter of a pentagon."""

def perimeter_pentagon(

Write a function to find the perimeter of a pentagon.
The function should be named `perimeter_pentagon`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert perimeter_pentagon(5)==25
assert perimeter_pentagon(10)==50
assert perimeter_pentagon(15)==75


"""Write a function to find the occurence of characters 'std' in the given string 1. list item 1. list item 1. list item 2. list item 2. list item 2. list item"""

def count_occurance(

Write a function to find the occurence of characters 'std' in the given string 1. list item 1. list item 1. list item 2. list item 2. list item 2. list item
The function should be named `count_occurance`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_occurance("letstdlenstdporstd") == 3
assert count_occurance("truststdsolensporsd") == 1
assert count_occurance("makestdsostdworthit") == 2


"""Write a function to remove everything except alphanumeric characters from a string."""

def remove_splchar(

Write a function to remove everything except alphanumeric characters from a string.
The function should be named `remove_splchar`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert remove_splchar('python  @#&^%$*program123')==('pythonprogram123')
assert remove_splchar('python %^$@!^&*()  programming24%$^^()    language')==('pythonprogramming24language')
assert remove_splchar('python   ^%&^()(+_)(_^&67)                  program')==('python67program')


"""Write a function to group a sequence of key-value pairs into a dictionary of lists."""

def group_keyvalue(

Write a function to group a sequence of key-value pairs into a dictionary of lists.
The function should be named `group_keyvalue`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to verify validity of a string of parentheses."""

def is_valid_parenthese(

Write a function to verify validity of a string of parentheses.
The function should be named `is_valid_parenthese`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_valid_parenthese("(){}[]")==True
assert is_valid_parenthese("()[{)}")==False
assert is_valid_parenthese("()")==True


"""Write a function to find the perimeter of a triangle."""

def perimeter_triangle(

Write a function to find the perimeter of a triangle.
The function should be named `perimeter_triangle`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert perimeter_triangle(10,20,30)==60
assert perimeter_triangle(3,4,5)==12
assert perimeter_triangle(25,35,45)==105


"""Write a python function to find two distinct numbers such that their lcm lies within the given range."""

def answer(

Write a python function to find two distinct numbers such that their lcm lies within the given range.
The function should be named `answer`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert answer(3,8) == (3,6)
assert answer(2,6) == (2,4)
assert answer(1,3) == (1,2)


"""Write a function to search some literals strings in a string."""

def string_literals(

Write a function to search some literals strings in a string.
The function should be named `string_literals`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert string_literals(['language'],'python language')==('Matched!')
assert string_literals(['program'],'python language')==('Not Matched!')
assert string_literals(['python'],'programming language')==('Not Matched!')


"""Write a function to find if the given number is a keith number or not."""

def is_num_keith(

Write a function to find if the given number is a keith number or not.
The function should be named `is_num_keith`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_num_keith(14) == True
assert is_num_keith(12) == False
assert is_num_keith(197) == True


"""Write a function to calculate distance between two points using latitude and longitude."""

def distance_lat_long(

Write a function to calculate distance between two points using latitude and longitude.
The function should be named `distance_lat_long`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the longest common prefix in the given set of strings."""

def common_prefix(

Write a function to find the longest common prefix in the given set of strings.
The function should be named `common_prefix`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert common_prefix(["tablets", "tables", "taxi", "tamarind"], 4) == 'ta'
assert common_prefix(["apples", "ape", "april"], 3) == 'ap'
assert common_prefix(["teens", "teenager", "teenmar"], 3) == 'teen'


"""Write a function to find uppercase, lowercase, special character and numeric values using regex."""

def find_character(

Write a function to find uppercase, lowercase, special character and numeric values using regex.
The function should be named `find_character`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to count all the distinct pairs having a difference of k in any array."""

def count_pairs(

Write a function to count all the distinct pairs having a difference of k in any array.
The function should be named `count_pairs`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find all the values in a list that are greater than a specified number."""

def greater_specificnum(

Write a function to find all the values in a list that are greater than a specified number.
The function should be named `greater_specificnum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert greater_specificnum([220, 330, 500],200)==True
assert greater_specificnum([12, 17, 21],20)==False
assert greater_specificnum([1,2,3,4],10)==False


"""Write a function to find the focus of a parabola."""

def parabola_focus(

Write a function to find the focus of a parabola.
The function should be named `parabola_focus`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to search some literals strings in a string by using regex."""

def check_literals(

Write a function to search some literals strings in a string by using regex.
The function should be named `check_literals`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_literals('The quick brown fox jumps over the lazy dog.',['fox']) == 'Matched!'
assert check_literals('The quick brown fox jumps over the lazy dog.',['horse']) == 'Not Matched!'
assert check_literals('The quick brown fox jumps over the lazy dog.',['lazy']) == 'Matched!'


"""Write a function to find the longest common subsequence for the given two sequences."""

def longest_common_subsequence(

Write a function to find the longest common subsequence for the given two sequences.
The function should be named `longest_common_subsequence`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert longest_common_subsequence("AGGTAB" , "GXTXAYB", 6, 7) == 4
assert longest_common_subsequence("ABCDGH" , "AEDFHR", 6, 6) == 3
assert longest_common_subsequence("AXYT" , "AYZX", 4, 4) == 2


"""Write a python function to check whether the given number can be represented by product of two squares or not."""

def prod_Square(

Write a python function to check whether the given number can be represented by product of two squares or not.
The function should be named `prod_Square`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert prod_Square(25) == False
assert prod_Square(30) == False
assert prod_Square(16) == True


"""Write a python function to find the first missing positive number."""

def first_Missing_Positive(

Write a python function to find the first missing positive number.
The function should be named `first_Missing_Positive`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert first_Missing_Positive([1,2,3,-1,5],5) == 4
assert first_Missing_Positive([0,-1,-2,1,5,8],6) == 2
assert first_Missing_Positive([0,1,2,5,-8],5) == 3


"""Write a python function to count the number of integral co-ordinates that lie inside a square."""

def count_Intgral_Points(

Write a python function to count the number of integral co-ordinates that lie inside a square.
The function should be named `count_Intgral_Points`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Intgral_Points(1,1,4,4) == 4
assert count_Intgral_Points(1,2,1,2) == 1
assert count_Intgral_Points(4,2,6,4) == 1


"""Write a function to check whether the given month name contains 30 days or not."""

def check_monthnumber(

Write a function to check whether the given month name contains 30 days or not.
The function should be named `check_monthnumber`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_monthnumber("February")==False
assert check_monthnumber("June")==True
assert check_monthnumber("April")==True


"""Write a python function to check whether a string has atleast one letter and one number."""

def check_String(

Write a python function to check whether a string has atleast one letter and one number.
The function should be named `check_String`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_String('thishasboth29') == True
assert check_String('python') == False
assert check_String ('string') == False


"""Write a function to remove the duplicates from the given tuple."""

def remove_tuple(

Write a function to remove the duplicates from the given tuple.
The function should be named `remove_tuple`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to convert octal number to decimal number."""

def octal_To_Decimal(

Write a python function to convert octal number to decimal number.
The function should be named `octal_To_Decimal`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert octal_To_Decimal(25) == 21
assert octal_To_Decimal(30) == 24
assert octal_To_Decimal(40) == 32


"""Write a python function to find the first position of an element in a sorted array."""

def first(

Write a python function to find the first position of an element in a sorted array.
The function should be named `first`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to remove all the tuples with length k."""

def remove_tuples(

Write a function to remove all the tuples with length k.
The function should be named `remove_tuples`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to perform the exponentiation of the given two tuples."""

def find_exponentio(

Write a function to perform the exponentiation of the given two tuples.
The function should be named `find_exponentio`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the largest triangle that can be inscribed in an ellipse."""

def largest_triangle(

Write a function to find the largest triangle that can be inscribed in an ellipse.
The function should be named `largest_triangle`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find highest power of 2 less than or equal to given number."""

def highest_Power_of_2(

Write a python function to find highest power of 2 less than or equal to given number.
The function should be named `highest_Power_of_2`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert highest_Power_of_2(10) == 8
assert highest_Power_of_2(19) == 16
assert highest_Power_of_2(32) == 32


"""Write a function to find all index positions of the maximum values in a given list."""

def position_max(

Write a function to find all index positions of the maximum values in a given list.
The function should be named `position_max`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether the elements in a list are same or not."""

def chkList(

Write a python function to check whether the elements in a list are same or not.
The function should be named `chkList`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert chkList(['one','one','one']) == True
assert chkList(['one','Two','Three']) == False
assert chkList(['bigdata','python','Django']) == False


"""Write a function to remove even characters in a string."""

def remove_even(

Write a function to remove even characters in a string.
The function should be named `remove_even`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert remove_even("python")==("pto")
assert remove_even("program")==("porm")
assert remove_even("language")==("lnug")


"""Write a python function to find the hamming distance between given two integers."""

def hamming_Distance(

Write a python function to find the hamming distance between given two integers.
The function should be named `hamming_Distance`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert hamming_Distance(4,8) == 2
assert hamming_Distance(2,4) == 2
assert hamming_Distance(1,2) == 2


"""Write a python function to count the occurrence of a given character in a string."""

def count(

Write a python function to count the occurrence of a given character in a string.
The function should be named `count`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count("abcc","c") == 2
assert count("ababca","a") == 3
assert count("mnmm0pm","m") == 4


"""Write a function to find the inversions of tuple elements in the given tuple list."""

def inversion_elements(

Write a function to find the inversions of tuple elements in the given tuple list.
The function should be named `inversion_elements`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to perform the adjacent element concatenation in the given tuples."""

def concatenate_elements(

Write a function to perform the adjacent element concatenation in the given tuples.
The function should be named `concatenate_elements`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert concatenate_elements(("DSP ", "IS ", "BEST ", "FOR ", "ALL ", "UTS")) == ('DSP IS ', 'IS BEST ', 'BEST FOR ', 'FOR ALL ', 'ALL UTS')
assert concatenate_elements(("RES ", "IS ", "BEST ", "FOR ", "ALL ", "QESR")) == ('RES IS ', 'IS BEST ', 'BEST FOR ', 'FOR ALL ', 'ALL QESR')
assert concatenate_elements(("MSAM", "IS ", "BEST ", "FOR ", "ALL ", "SKD")) == ('MSAMIS ', 'IS BEST ', 'BEST FOR ', 'FOR ALL ', 'ALL SKD')


"""Write a function to count the longest repeating subsequences such that the two subsequences don’t have same string characters at same positions."""

def find_longest_repeating_subseq(

Write a function to count the longest repeating subsequences such that the two subsequences don’t have same string characters at same positions.
The function should be named `find_longest_repeating_subseq`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert find_longest_repeating_subseq("AABEBCDD") == 3
assert find_longest_repeating_subseq("aabb") == 2
assert find_longest_repeating_subseq("aab") == 1


"""Write a function to check the given decimal with a precision of 2 by using regex."""

def is_decimal(

Write a function to check the given decimal with a precision of 2 by using regex.
The function should be named `is_decimal`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_decimal('123.11') == True
assert is_decimal('0.21') == True
assert is_decimal('123.1214') == False


"""Write a function to delete the smallest element from the given heap and then insert a new item."""

def heap_replace(

Write a function to delete the smallest element from the given heap and then insert a new item.
The function should be named `heap_replace`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to check that the given string contains only a certain set of characters(in this case a-z, a-z and 0-9) by using regex."""

def is_allowed_specific_char(

Write a function to check that the given string contains only a certain set of characters(in this case a-z, a-z and 0-9) by using regex.
The function should be named `is_allowed_specific_char`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert is_allowed_specific_char("ABCDEFabcdef123450") == True
assert is_allowed_specific_char("*&%@#!}{") == False
assert is_allowed_specific_char("HELLOhowareyou98765") == True


"""Write a python function to count numbers whose oth and nth bits are set."""

def count_Num(

Write a python function to count numbers whose oth and nth bits are set.
The function should be named `count_Num`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Num(2) == 1
assert count_Num(3) == 2
assert count_Num(1) == 1


"""Write a python function to find the sum of fourth power of n natural numbers."""

def fourth_Power_Sum(

Write a python function to find the sum of fourth power of n natural numbers.
The function should be named `fourth_Power_Sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert fourth_Power_Sum(2) == 17
assert fourth_Power_Sum(4) == 354
assert fourth_Power_Sum(6) == 2275


"""Write a function to perform the concatenation of two string tuples."""

def concatenate_strings(

Write a function to perform the concatenation of two string tuples.
The function should be named `concatenate_strings`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert concatenate_strings(("Manjeet", "Nikhil", "Akshat"), (" Singh", " Meherwal", " Garg")) == ('Manjeet Singh', 'Nikhil Meherwal', 'Akshat Garg')
assert concatenate_strings(("Shaik", "Ayesha", "Sanya"), (" Dawood", " Begum", " Singh")) == ('Shaik Dawood', 'Ayesha Begum', 'Sanya Singh')
assert concatenate_strings(("Harpreet", "Priyanka", "Muskan"), ("Kour", " Agarwal", "Sethi")) == ('HarpreetKour', 'Priyanka Agarwal', 'MuskanSethi')


"""Write a function to convert radians to degrees."""

def degree_radian(

Write a function to convert radians to degrees.
The function should be named `degree_radian`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to decode a run-length encoded given list."""

def decode_list(

Write a function to decode a run-length encoded given list.
The function should be named `decode_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to check if a nested list is a subset of another nested list."""

def check_subset_list(

Write a function to check if a nested list is a subset of another nested list.
The function should be named `check_subset_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the first repeated character in a given string."""

def first_Repeated_Char(

Write a python function to find the first repeated character in a given string.
The function should be named `first_Repeated_Char`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert first_Repeated_Char("Google") == "o"
assert first_Repeated_Char("data") == "a"
assert first_Repeated_Char("python") == '\0'


"""Write a python function to find the minimum operations required to make two numbers equal."""

def min_Operations(

Write a python function to find the minimum operations required to make two numbers equal.
The function should be named `min_Operations`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert min_Operations(2,4) == 1
assert min_Operations(4,10) == 4
assert min_Operations(1,4) == 3


"""Write a function to extract maximum and minimum k elements in the given tuple."""

def extract_min_max(

Write a function to extract maximum and minimum k elements in the given tuple.
The function should be named `extract_min_max`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to replace maximum n occurrences of spaces, commas, or dots with a colon."""

def replace_max_specialchar(

Write a function to replace maximum n occurrences of spaces, commas, or dots with a colon.
The function should be named `replace_max_specialchar`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert replace_max_specialchar('Python language, Programming language.',2)==('Python:language: Programming language.')
assert replace_max_specialchar('a b c,d e f',3)==('a:b:c:d e f')
assert replace_max_specialchar('ram reshma,ram rahim',1)==('ram:reshma,ram rahim')


"""Write a python function to find the first even number in a given list of numbers."""

def first_even(

Write a python function to find the first even number in a given list of numbers.
The function should be named `first_even`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to check if all the elements in tuple have same data type or not."""

def check_type(

Write a function to check if all the elements in tuple have same data type or not.
The function should be named `check_type`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert check_type((5, 6, 7, 3, 5, 6) ) == True
assert check_type((1, 2, "4") ) == False
assert check_type((3, 2, 1, 4, 5) ) == True


"""Write a function to check for majority element in the given sorted array."""

def is_majority(

Write a function to check for majority element in the given sorted array.
The function should be named `is_majority`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count set bits of a given number."""

def count_Set_Bits(

Write a python function to count set bits of a given number.
The function should be named `count_Set_Bits`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Set_Bits(2) == 1
assert count_Set_Bits(4) == 1
assert count_Set_Bits(6) == 2


"""Write a python function to find the minimum element in a sorted and rotated array."""

def find_Min(

Write a python function to find the minimum element in a sorted and rotated array.
The function should be named `find_Min`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to remove the characters which have odd index values of a given string."""

def odd_values_string(

Write a python function to remove the characters which have odd index values of a given string.
The function should be named `odd_values_string`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert odd_values_string('abcdef') == 'ace'
assert odd_values_string('python') == 'pto'
assert odd_values_string('data') == 'dt'


"""Write a function to find minimum of three numbers."""

def min_of_three(

Write a function to find minimum of three numbers.
The function should be named `min_of_three`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to check whether all the bits are unset in the given range or not."""

def all_Bits_Set_In_The_Given_Range(

Write a python function to check whether all the bits are unset in the given range or not.
The function should be named `all_Bits_Set_In_The_Given_Range`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert all_Bits_Set_In_The_Given_Range(4,1,2) == True
assert all_Bits_Set_In_The_Given_Range(17,2,4) == True
assert all_Bits_Set_In_The_Given_Range(39,4,6) == False


"""Write a function to re-arrange the elements of the given array so that all negative elements appear before positive ones."""

def re_arrange_array(

Write a function to re-arrange the elements of the given array so that all negative elements appear before positive ones.
The function should be named `re_arrange_array`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to replace blank spaces with any character in a string."""

def replace_blank(

Write a function to replace blank spaces with any character in a string.
The function should be named `replace_blank`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert replace_blank("hello people",'@')==("hello@people")
assert replace_blank("python program language",'$')==("python$program$language")
assert replace_blank("blank space","-")==("blank-space")


"""Write a function to find the maximum sum in the given right triangle of numbers."""

def max_sum(

Write a function to find the maximum sum in the given right triangle of numbers.
The function should be named `max_sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to get the n largest items from a dataset."""

def larg_nnum(

Write a function to get the n largest items from a dataset.
The function should be named `larg_nnum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the lateral surface area of a cylinder."""

def lateralsuface_cylinder(

Write a function to find the lateral surface area of a cylinder.
The function should be named `lateralsuface_cylinder`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert lateralsuface_cylinder(10,5)==314.15000000000003
assert lateralsuface_cylinder(4,5)==125.66000000000001
assert lateralsuface_cylinder(4,10)==251.32000000000002


"""Write a function to find the volume of a cube."""

def volume_cube(

Write a function to find the volume of a cube.
The function should be named `volume_cube`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert volume_cube(3)==27
assert volume_cube(2)==8
assert volume_cube(5)==125


"""Write a python function to set all even bits of a given number."""

def even_bit_set_number(

Write a python function to set all even bits of a given number.
The function should be named `even_bit_set_number`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert even_bit_set_number(10) == 10
assert even_bit_set_number(20) == 30
assert even_bit_set_number(30) == 30


"""Write a python function to count the maximum number of equilateral triangles that can be formed within a given equilateral triangle."""

def No_of_Triangle(

Write a python function to count the maximum number of equilateral triangles that can be formed within a given equilateral triangle.
The function should be named `No_of_Triangle`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert No_of_Triangle(4,2) == 7
assert No_of_Triangle(4,3) == 3
assert No_of_Triangle(1,3) == -1


"""Write a function to check the occurrences of records which occur similar times in the given tuples."""

def check_occurences(

Write a function to check the occurrences of records which occur similar times in the given tuples.
The function should be named `check_occurences`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count number of non-empty substrings of a given string."""

def number_of_substrings(

Write a python function to count number of non-empty substrings of a given string.
The function should be named `number_of_substrings`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert number_of_substrings("abc") == 6
assert number_of_substrings("abcd") == 10
assert number_of_substrings("abcde") == 15


"""Write a function to find the number of possible sequences of length n such that each of the next element is greater than or equal to twice of the previous element but less than or equal to m."""

def get_total_number_of_sequences(

Write a function to find the number of possible sequences of length n such that each of the next element is greater than or equal to twice of the previous element but less than or equal to m.
The function should be named `get_total_number_of_sequences`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert get_total_number_of_sequences(10, 4) == 4
assert get_total_number_of_sequences(5, 2) == 6
assert get_total_number_of_sequences(16, 3) == 84


"""Write a function to replace the last element of the list with another list."""

def replace_list(

Write a function to replace the last element of the list with another list.
The function should be named `replace_list`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to generate a 3d array having each element as '*'."""

def array_3d(

Write a function to generate a 3d array having each element as '*'.
The function should be named `array_3d`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to count total characters in a string."""

def count_charac(

Write a function to count total characters in a string.
The function should be named `count_charac`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_charac("python programming")==18
assert count_charac("language")==8
assert count_charac("words")==5


"""Write a function to sort the given list based on the occurrence of first element of tuples."""

def sort_on_occurence(

Write a function to sort the given list based on the occurrence of first element of tuples.
The function should be named `sort_on_occurence`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to find the next perfect square greater than a given number."""

def next_Perfect_Square(

Write a python function to find the next perfect square greater than a given number.
The function should be named `next_Perfect_Square`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert next_Perfect_Square(35) == 36
assert next_Perfect_Square(6) == 9
assert next_Perfect_Square(9) == 16


"""Write a function to find the maximum sum of bi-tonic sub-sequence for the given array."""

def max_sum(

Write a function to find the maximum sum of bi-tonic sub-sequence for the given array.
The function should be named `max_sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function for computing square roots using the babylonian method."""

def babylonian_squareroot(

Write a function for computing square roots using the babylonian method.
The function should be named `babylonian_squareroot`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert babylonian_squareroot(10)==3.162277660168379
assert babylonian_squareroot(2)==1.414213562373095
assert babylonian_squareroot(9)==3.0


"""Write a function to find the longest palindromic subsequence in the given string."""

def lps(

Write a function to find the longest palindromic subsequence in the given string.
The function should be named `lps`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert lps("TENS FOR TENS") == 5
assert lps("CARDIO FOR CARDS") == 7
assert lps("PART OF THE JOURNEY IS PART") == 9


"""Write a function to calculate the harmonic sum of n-1."""

def harmonic_sum(

Write a function to calculate the harmonic sum of n-1.
The function should be named `harmonic_sum`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the intersection of two arrays using lambda function."""

def intersection_array(

Write a function to find the intersection of two arrays using lambda function.
The function should be named `intersection_array`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count the occcurences of an element in a tuple."""

def count_X(

Write a python function to count the occcurences of an element in a tuple.
The function should be named `count_X`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to insert an element before each element of a list."""

def insert_element(

Write a function to insert an element before each element of a list.
The function should be named `insert_element`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert insert_element(['Red', 'Green', 'Black'] ,'c')==['c', 'Red', 'c', 'Green', 'c', 'Black']
assert insert_element(['python', 'java'] ,'program')==['program', 'python', 'program', 'java']
assert insert_element(['happy', 'sad'] ,'laugh')==['laugh', 'happy', 'laugh', 'sad']


"""Write a python function to convert complex numbers to polar coordinates."""

def convert(

Write a python function to convert complex numbers to polar coordinates.
The function should be named `convert`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a python function to count integers from a given list."""

def count_integer(

Write a python function to count integers from a given list.
The function should be named `count_integer`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_integer([1,2,'abc',1.2]) == 2
assert count_integer([1,2,3]) == 3
assert count_integer([1,1.2,4,5.1]) == 2


"""Write a function to find all words starting with 'a' or 'e' in a given string."""

def words_ae(

Write a function to find all words starting with 'a' or 'e' in a given string.
The function should be named `words_ae`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert words_ae("python programe")==['ame']
assert words_ae("python programe language")==['ame','anguage']
assert words_ae("assert statement")==['assert', 'atement']


"""Write a function to choose specified number of colours from three different colours and generate all the combinations with repetitions."""

def combinations_colors(

Write a function to choose specified number of colours from three different colours and generate all the combinations with repetitions.
The function should be named `combinations_colors`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert combinations_colors( ["Red","Green","Blue"],1)==[('Red',), ('Green',), ('Blue',)]
assert combinations_colors( ["Red","Green","Blue"],2)==[('Red', 'Red'), ('Red', 'Green'), ('Red', 'Blue'), ('Green', 'Green'), ('Green', 'Blue'), ('Blue', 'Blue')]
assert combinations_colors( ["Red","Green","Blue"],3)==[('Red', 'Red', 'Red'), ('Red', 'Red', 'Green'), ('Red', 'Red', 'Blue'), ('Red', 'Green', 'Green'), ('Red', 'Green', 'Blue'), ('Red', 'Blue', 'Blue'), ('Green', 'Green', 'Green'), ('Green', 'Green', 'Blue'), ('Green', 'Blue', 'Blue'), ('Blue', 'Blue', 'Blue')]


"""Write a python function to count the number of prime numbers less than a given non-negative number."""

def count_Primes_nums(

Write a python function to count the number of prime numbers less than a given non-negative number.
The function should be named `count_Primes_nums`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert count_Primes_nums(5) == 2
assert count_Primes_nums(10) == 4
assert count_Primes_nums(100) == 25


"""Write a function to swap two numbers."""

def swap_numbers(

Write a function to swap two numbers.
The function should be named `swap_numbers`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find number of odd elements in the given list using lambda function."""

def count_odd(

Write a function to find number of odd elements in the given list using lambda function.
The function should be named `count_odd`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to maximize the given two tuples."""

def maximize_elements(

Write a function to maximize the given two tuples.
The function should be named `maximize_elements`.

Wrap your code in a python code block (i.e. ```python
your code here
```).


"""Write a function to find the nth newman–shanks–williams prime number."""

def newman_prime(

Write a function to find the nth newman–shanks–williams prime number.
The function should be named `newman_prime`.

Wrap your code in a python code block (i.e. ```python
your code here
```).

assert newman_prime(3) == 7
assert newman_prime(4) == 17
assert newman_prime(5) == 41