"""Write a function to perform mathematical division operation across the given tuples."""

def division_elements(

Write a function to perform mathematical division operation across the given tuples.
The function should be named `division_elements`.

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


"""Write a function to split a given list into two parts where the length of the first part of the list is given."""

def split_two_parts(

Write a function to split a given list into two parts where the length of the first part of the list is given.
The function should be named `split_two_parts`.

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


"""Write a function to merge two dictionaries."""

def merge_dict(

Write a function to merge two dictionaries.
The function should be named `merge_dict`.

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


"""Write a function to calculate a dog's age in dog's years."""

def dog_age(

Write a function to calculate a dog's age in dog's years.
The function should be named `dog_age`.

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

assert dog_age(12)==61
assert dog_age(15)==73
assert dog_age(24)==109


"""Write a function to split a list for every nth element."""

def list_split(

Write a function to split a list for every nth element.
The function should be named `list_split`.

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 cube."""

def lateralsurface_cube(

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

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

assert lateralsurface_cube(5)==100
assert lateralsurface_cube(9)==324
assert lateralsurface_cube(10)==400


"""Write a python function to find the sum of squares of first n odd natural numbers."""

def square_Sum(

Write a python function to find the sum of squares of first n odd natural numbers.
The function should be named `square_Sum`.

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

assert square_Sum(2) == 10
assert square_Sum(3) == 35
assert square_Sum(4) == 84


"""Write a function to find the n'th star number."""

def find_star_num(

Write a function to find the n'th star number.
The function should be named `find_star_num`.

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

assert find_star_num(3) == 37
assert find_star_num(4) == 73
assert find_star_num(5) == 121


"""Write a function to find the ascii value of a character."""

def ascii_value(

Write a function to find the ascii value of a character.
The function should be named `ascii_value`.

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

assert ascii_value('A')==65
assert ascii_value('R')==82
assert ascii_value('S')==83


"""Write a python function to find the sum of even numbers at even positions."""

def sum_even_and_even_index(

Write a python function to find the sum of even numbers at even positions.
The function should be named `sum_even_and_even_index`.

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


"""Write a python function to find the sum of fifth power of first n even natural numbers."""

def even_Power_Sum(

Write a python function to find the sum of fifth power of first n even natural numbers.
The function should be named `even_Power_Sum`.

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

assert even_Power_Sum(2) == 1056
assert even_Power_Sum(3) == 8832
assert even_Power_Sum(1) == 32


"""Write a function to perfom the rear element extraction from list of tuples records."""

def rear_extract(

Write a function to perfom the rear element extraction from list of tuples records.
The function should be named `rear_extract`.

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


"""Write a function to substract the contents of one tuple with corresponding index of other tuple."""

def substract_elements(

Write a function to substract the contents of one tuple with corresponding index of other tuple.
The function should be named `substract_elements`.

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


"""Write a python function to find sum of even index binomial coefficients."""

def even_binomial_Coeff_Sum(

Write a python function to find sum of even index binomial coefficients.
The function should be named `even_binomial_Coeff_Sum`.

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

assert even_binomial_Coeff_Sum(4) == 8
assert even_binomial_Coeff_Sum(6) == 32
assert even_binomial_Coeff_Sum(2) == 2


"""Write a python function to find the position of the last removed element from the given array."""

def get_Position(

Write a python function to find the position of the last removed element from the given array.
The function should be named `get_Position`.

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

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


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

def volume_cylinder(

Write a function to find the volume of a cylinder.
The function should be named `volume_cylinder`.

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


"""Write a function to filter a dictionary based on values."""

def dict_filter(

Write a function to filter a dictionary based on values.
The function should be named `dict_filter`.

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

assert dict_filter({'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190},170)=={'Cierra Vega': 175, 'Alden Cantrell': 180, 'Pierre Cox': 190}
assert dict_filter({'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190},180)=={ 'Alden Cantrell': 180, 'Pierre Cox': 190}
assert dict_filter({'Cierra Vega': 175, 'Alden Cantrell': 180, 'Kierra Gentry': 165, 'Pierre Cox': 190},190)=={ 'Pierre Cox': 190}


"""Write a function to find the element count that occurs before the record in the given tuple."""

def count_first_elements(

Write a function to find the element count that occurs before the record in the given tuple.
The function should be named `count_first_elements`.

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

assert count_first_elements((1, 5, 7, (4, 6), 10) ) == 3
assert count_first_elements((2, 9, (5, 7), 11) ) == 2
assert count_first_elements((11, 15, 5, 8, (2, 3), 8) ) == 4


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

def is_num_decagonal(

Write a function to find the nth decagonal number.
The function should be named `is_num_decagonal`.

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

assert is_num_decagonal(3) == 27
assert is_num_decagonal(7) == 175
assert is_num_decagonal(10) == 370


"""Write a function to search an element in the given array by using sequential search."""

def sequential_search(

Write a function to search an element in the given array by using sequential search.
The function should be named `sequential_search`.

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


"""Write a python function to check if the elements of a given list are unique or not."""

def all_unique(

Write a python function to check if the elements of a given list are unique or not.
The function should be named `all_unique`.

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

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


"""Write a function to substaract two lists using map and lambda function."""

def sub_list(

Write a function to substaract two lists using map and lambda function.
The function should be named `sub_list`.

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


"""Write a python function to check whether the frequency of each digit is less than or equal to the digit itself."""

def validate(

Write a python function to check whether the frequency of each digit is less than or equal to the digit itself.
The function should be named `validate`.

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

assert validate(1234) == True
assert validate(51241) == False
assert validate(321) == True


"""Write a function to check whether all items of a list are equal to a given string."""

def check_element(

Write a function to check whether all items of a list are equal to a given string.
The function should be named `check_element`.

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

assert check_element(["green", "orange", "black", "white"],'blue')==False
assert check_element([1,2,3,4],7)==False
assert check_element(["green", "green", "green", "green"],'green')==True


"""Write a function that matches a string that has an a followed by two to three 'b'."""

def text_match_two_three(

Write a function that matches a string that has an a followed by two to three 'b'.
The function should be named `text_match_two_three`.

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

assert text_match_two_three("ac")==('Not matched!')
assert text_match_two_three("dc")==('Not matched!')
assert text_match_two_three("abbbba")==('Found a match!')


"""Write a function to find the largest sum of contiguous array in the modified array which is formed by repeating the given array k times."""

def max_sub_array_sum_repeated(

Write a function to find the largest sum of contiguous array in the modified array which is formed by repeating the given array k times.
The function should be named `max_sub_array_sum_repeated`.

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

assert max_sub_array_sum_repeated([10, 20, -30, -1], 4, 3) == 30
assert max_sub_array_sum_repeated([-1, 10, 20], 3, 2) == 59
assert max_sub_array_sum_repeated([-1, -2, -3], 3, 3) == -1


"""Write a python function to find the sum of squares of first n even natural numbers."""

def square_Sum(

Write a python function to find the sum of squares of first n even natural numbers.
The function should be named `square_Sum`.

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

assert square_Sum(2) == 20
assert square_Sum(3) == 56
assert square_Sum(4) == 120


"""Write a function to count array elements having modular inverse under given prime number p equal to itself."""

def modular_inverse(

Write a function to count array elements having modular inverse under given prime number p equal to itself.
The function should be named `modular_inverse`.

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


"""Write a python function to calculate the number of odd days in a given year."""

def odd_Days(

Write a python function to calculate the number of odd days in a given year.
The function should be named `odd_Days`.

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

assert odd_Days(100) == 5
assert odd_Days(50) ==6
assert odd_Days(75) == 2


"""Write a function to find the list of lists with maximum length."""

def max_length(

Write a function to find the list of lists with maximum length.
The function should be named `max_length`.

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


"""Write a function to find out the number of ways of painting the fence such that at most 2 adjacent posts have the same color for the given fence with n posts and k colors."""

def count_no_of_ways(

Write a function to find out the number of ways of painting the fence such that at most 2 adjacent posts have the same color for the given fence with n posts and k colors.
The function should be named `count_no_of_ways`.

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

assert count_no_of_ways(2, 4) == 16
assert count_no_of_ways(3, 2) == 6
assert count_no_of_ways(4, 4) == 228


"""Write a python function to find quotient of two numbers."""

def find(

Write a python function to find quotient of two numbers.
The function should be named `find`.

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

assert find(10,3) == 3
assert find(4,2) == 2
assert find(20,5) == 4


"""Write a function to find the third side of a right angled triangle."""

def otherside_rightangle(

Write a function to find the third side of a right angled triangle.
The function should be named `otherside_rightangle`.

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

assert otherside_rightangle(7,8)==10.63014581273465
assert otherside_rightangle(3,4)==5
assert otherside_rightangle(7,15)==16.55294535724685


"""Write a function to find the maximum value in a given heterogeneous list."""

def max_val(

Write a function to find the maximum value in a given heterogeneous list.
The function should be named `max_val`.

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

assert max_val(['Python', 3, 2, 4, 5, 'version'])==5
assert max_val(['Python', 15, 20, 25])==25
assert max_val(['Python', 30, 20, 40, 50, 'version'])==50


"""Write a function to return the sum of all divisors of a number."""

def sum_div(

Write a function to return the sum of all divisors of a number.
The function should be named `sum_div`.

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

assert sum_div(8)==7
assert sum_div(12)==16
assert sum_div(7)==1


"""Write a python function to count inversions in an array."""

def get_Inv_Count(

Write a python function to count inversions in an array.
The function should be named `get_Inv_Count`.

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


"""Write a function to flatten a given nested list structure."""

def flatten_list(

Write a function to flatten a given nested list structure.
The function should be named `flatten_list`.

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


"""Write a function to find the nested list elements which are present in another list."""

def intersection_nested_lists(

Write a function to find the nested list elements which are present in another list.
The function should be named `intersection_nested_lists`.

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


"""Write a function to calculate the maximum aggregate from the list of tuples."""

def max_aggregate(

Write a function to calculate the maximum aggregate from the list of tuples.
The function should be named `max_aggregate`.

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

assert max_aggregate([('Juan Whelan',90),('Sabah Colley',88),('Peter Nichols',7),('Juan Whelan',122),('Sabah Colley',84)])==('Juan Whelan', 212)
assert max_aggregate([('Juan Whelan',50),('Sabah Colley',48),('Peter Nichols',37),('Juan Whelan',22),('Sabah Colley',14)])==('Juan Whelan', 72)
assert max_aggregate([('Juan Whelan',10),('Sabah Colley',20),('Peter Nichols',30),('Juan Whelan',40),('Sabah Colley',50)])==('Sabah Colley', 70)


"""Write a function to find the count of all binary sequences of length 2n such that sum of first n bits is same as sum of last n bits."""

def count_binary_seq(

Write a function to find the count of all binary sequences of length 2n such that sum of first n bits is same as sum of last n bits.
The function should be named `count_binary_seq`.

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

assert count_binary_seq(1) == 2.0
assert count_binary_seq(2) == 6.0
assert count_binary_seq(3) == 20.0


"""Write a function to find the depth of a dictionary."""

def dict_depth(

Write a function to find the depth of a dictionary.
The function should be named `dict_depth`.

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


"""Write a python function to find the most significant bit number which is also a set bit."""

def set_Bit_Number(

Write a python function to find the most significant bit number which is also a set bit.
The function should be named `set_Bit_Number`.

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

assert set_Bit_Number(6) == 4
assert set_Bit_Number(10) == 8
assert set_Bit_Number(18) == 16


"""Write a python function to check whether the count of inversion of two types are same or not."""

def solve(

Write a python function to check whether the count of inversion of two types are same or not.
The function should be named `solve`.

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

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


"""Write a python function to find element at a given index after number of rotations."""

def find_Element(

Write a python function to find element at a given index after number of rotations.
The function should be named `find_Element`.

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


"""Write a function to match two words from a list of words starting with letter 'p'."""

def start_withp(

Write a function to match two words from a list of words starting with letter 'p'.
The function should be named `start_withp`.

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

assert start_withp(["Python PHP", "Java JavaScript", "c c++"])==('Python', 'PHP')
assert start_withp(["Python Programming","Java Programming"])==('Python','Programming')
assert start_withp(["Pqrst Pqr","qrstuv"])==('Pqrst','Pqr')


"""Write a function to find the maximum sum of increasing subsequence from prefix till ith index and also including a given kth element which is after i, i.e., k > i ."""

def max_sum_increasing_subseq(

Write a function to find the maximum sum of increasing subsequence from prefix till ith index and also including a given kth element which is after i, i.e., k > i .
The function should be named `max_sum_increasing_subseq`.

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


"""Write a function to get a colon of a tuple."""

def colon_tuplex(

Write a function to get a colon of a tuple.
The function should be named `colon_tuplex`.

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

assert colon_tuplex(("HELLO", 5, [], True) ,2,50)==("HELLO", 5, [50], True)
assert colon_tuplex(("HELLO", 5, [], True) ,2,100)==(("HELLO", 5, [100],True))
assert colon_tuplex(("HELLO", 5, [], True) ,2,500)==("HELLO", 5, [500], True)


"""Write a function to find the specified number of largest products from two given lists."""

def large_product(

Write a function to find the specified number of largest products from two given lists.
The function should be named `large_product`.

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


"""Write a python function to find the maximum of two numbers."""

def maximum(

Write a python function to find the maximum of two numbers.
The function should be named `maximum`.

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

assert maximum(5,10) == 10
assert maximum(-1,-2) == -1
assert maximum(9,7) == 9


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

def string_to_tuple(

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

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


"""Write a python function to set the left most unset bit."""

def set_left_most_unset_bit(

Write a python function to set the left most unset bit.
The function should be named `set_left_most_unset_bit`.

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

assert set_left_most_unset_bit(10) == 14
assert set_left_most_unset_bit(12) == 14
assert set_left_most_unset_bit(15) == 15


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

def volume_cone(

Write a function to find the volume of a cone.
The function should be named `volume_cone`.

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


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

def pos_nos(

Write a python function to print positive numbers in a list.
The function should be named `pos_nos`.

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


"""Write a function to find out the maximum sum such that no two chosen numbers are adjacent for the given rectangular grid of dimension 2 x n."""

def max_sum_rectangular_grid(

Write a function to find out the maximum sum such that no two chosen numbers are adjacent for the given rectangular grid of dimension 2 x n.
The function should be named `max_sum_rectangular_grid`.

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


"""Write a python function to find the first maximum length of even word."""

def find_Max_Len_Even(

Write a python function to find the first maximum length of even word.
The function should be named `find_Max_Len_Even`.

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

assert find_Max_Len_Even("python language") == "language"
assert find_Max_Len_Even("maximum even length") == "length"
assert find_Max_Len_Even("eve") == "-1"


"""Write a function to find the index of the last occurrence of a given number in a sorted array."""

def find_last_occurrence(

Write a function to find the index of the last occurrence of a given number in a sorted array.
The function should be named `find_last_occurrence`.

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


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

def modified_encode(

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

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


"""Write a python function to find the maximum volume of a cuboid with given sum of sides."""

def max_volume(

Write a python function to find the maximum volume of a cuboid with given sum of sides.
The function should be named `max_volume`.

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

assert max_volume(8) == 18
assert max_volume(4) == 2
assert max_volume(1) == 0


"""Write a function to find all five characters long word in the given string by using regex."""

def find_long_word(

Write a function to find all five characters long word in the given string by using regex.
The function should be named `find_long_word`.

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

assert find_long_word('Please move back to strem') == ['strem']
assert find_long_word('4K Ultra HD streaming player') == ['Ultra']
assert find_long_word('Streaming Media Player') == ['Media']


"""Write a function to calculate the difference between the squared sum of first n natural numbers and the sum of squared first n natural numbers."""

def sum_difference(

Write a function to calculate the difference between the squared sum of first n natural numbers and the sum of squared first n natural numbers.
The function should be named `sum_difference`.

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

assert sum_difference(12)==5434
assert sum_difference(20)==41230
assert sum_difference(54)==2151270


"""Write a function to find the demlo number for the given number."""

def find_demlo(

Write a function to find the demlo number for the given number.
The function should be named `find_demlo`.

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


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

def position_min(

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

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


"""Write a function to re-arrange the given array in alternating positive and negative items."""

def re_arrange(

Write a function to re-arrange the given array in alternating positive and negative items.
The function should be named `re_arrange`.

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


"""Write a function to extract the sum of alternate chains of tuples."""

def sum_of_alternates(

Write a function to extract the sum of alternate chains of tuples.
The function should be named `sum_of_alternates`.

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


"""Write a python function to find the minimum number of squares whose sum is equal to a given number."""

def get_Min_Squares(

Write a python function to find the minimum number of squares whose sum is equal to a given number.
The function should be named `get_Min_Squares`.

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

assert get_Min_Squares(6) == 3
assert get_Min_Squares(2) == 2
assert get_Min_Squares(4) == 1


"""Write a function to get the word with most number of occurrences in the given strings list."""

def most_occurrences(

Write a function to get the word with most number of occurrences in the given strings list.
The function should be named `most_occurrences`.

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

assert most_occurrences(["UTS is best for RTF", "RTF love UTS", "UTS is best"] ) == 'UTS'
assert most_occurrences(["Its been a great year", "this year is so worse", "this year is okay"] ) == 'year'
assert most_occurrences(["Families can be reunited", "people can be reunited", "Tasks can be achieved "] ) == 'can'


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

def check_isosceles(

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

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

assert check_isosceles(6,8,12)==False
assert check_isosceles(6,6,12)==True
assert check_isosceles(6,16,20)==False


"""Write a function to rotate a given list by specified number of items to the left direction."""

def rotate_left(

Write a function to rotate a given list by specified number of items to the left direction.
The function should be named `rotate_left`.

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


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

def neg_count(

Write a python function to count negative numbers in a list.
The function should be named `neg_count`.

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


"""Write a function to find all three, four, five characters long words in the given string by using regex."""

def find_char(

Write a function to find all three, four, five characters long words in the given string by using regex.
The function should be named `find_char`.

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

assert find_char('For the four consumer complaints contact manager AKR reddy') == ['For', 'the', 'four', 'AKR', 'reddy']
assert find_char('Certain service are subject to change MSR') == ['are', 'MSR']
assert find_char('Third party legal desclaimers') == ['Third', 'party', 'legal']


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

def count_unset_bits(

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

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

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


"""Write a function to count character frequency of a given string."""

def char_frequency(

Write a function to count character frequency of a given string.
The function should be named `char_frequency`.

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


"""Write a python function to sort a list according to the second element in sublist."""

def Sort(

Write a python function to sort a list according to the second element in sublist.
The function should be named `Sort`.

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


"""Write a python function to check whether the triangle is valid or not if sides are given."""

def check_Validity(

Write a python function to check whether the triangle is valid or not if sides are given.
The function should be named `check_Validity`.

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

assert check_Validity(1,2,3) == False
assert check_Validity(2,3,5) == False
assert check_Validity(7,10,5) == True


"""Write a function to find the sum of arithmetic progression."""

def ap_sum(

Write a function to find the sum of arithmetic progression.
The function should be named `ap_sum`.

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


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

def check_monthnum(

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

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

assert check_monthnum("February")==True
assert check_monthnum("January")==False
assert check_monthnum("March")==False


"""Write a function that matches a word at the end of a string, with optional punctuation."""

def text_match_word(

Write a function that matches a word at the end of a string, with optional punctuation.
The function should be named `text_match_word`.

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

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


"""Write a python function to count the number of substrings with same first and last characters."""

def count_Substring_With_Equal_Ends(

Write a python function to count the number of substrings with same first and last 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('aba') == 4
assert count_Substring_With_Equal_Ends('abcab') == 7
assert count_Substring_With_Equal_Ends('abc') == 3


"""Write a python function to find the maximum occuring divisor in an interval."""

def find_Divisor(

Write a python function to find the maximum occuring divisor in an interval.
The function should be named `find_Divisor`.

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

assert find_Divisor(2,2) == 2
assert find_Divisor(2,5) == 2
assert find_Divisor(5,10) == 2


"""Write a python function to find the sum of the three lowest positive numbers from a given list of numbers."""

def sum_three_smallest_nums(

Write a python function to find the sum of the three lowest positive numbers from a given list of numbers.
The function should be named `sum_three_smallest_nums`.

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

assert sum_three_smallest_nums([10,20,30,40,50,60,7]) == 37
assert sum_three_smallest_nums([1,2,3,4,5]) == 6
assert sum_three_smallest_nums([0,1,2,3,4,5]) == 6


"""Write a function to convert the given set into ordered tuples."""

def set_to_tuple(

Write a function to convert the given set into ordered tuples.
The function should be named `set_to_tuple`.

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


"""Write a function to find the smallest range that includes at-least one element from each of the given arrays."""

def find_minimum_range(

Write a function to find the smallest range that includes at-least one element from each of the given arrays.
The function should be named `find_minimum_range`.

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


"""Write a function to calculate the number of digits and letters in a string."""

def dig_let(

Write a function to calculate the number of digits and letters in a string.
The function should be named `dig_let`.

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

assert dig_let("python")==(6,0)
assert dig_let("program")==(7,0)
assert dig_let("python3.0")==(6,2)


"""Write a python function to find number of elements with odd factors in a given range."""

def count_Odd_Squares(

Write a python function to find number of elements with odd factors in a given range.
The function should be named `count_Odd_Squares`.

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

assert count_Odd_Squares(5,100) == 8
assert count_Odd_Squares(8,65) == 6
assert count_Odd_Squares(2,5) == 1


"""Write a function to find the difference between two consecutive numbers in a given list."""

def diff_consecutivenums(

Write a function to find the difference between two consecutive numbers in a given list.
The function should be named `diff_consecutivenums`.

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


"""Write a function to find entringer number e(n, k)."""

def zigzag(

Write a function to find entringer number e(n, k).
The function should be named `zigzag`.

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

assert zigzag(4, 3) == 5
assert zigzag(4, 2) == 4
assert zigzag(3, 1) == 1


"""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(1,2) == 2
assert count_Squares(2,2) == 5


"""Write a function to count sequences of given length having non-negative prefix sums that can be generated by given values."""

def find_ways(

Write a function to count sequences of given length having non-negative prefix sums that can be generated by given values.
The function should be named `find_ways`.

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

assert find_ways(4) == 2
assert find_ways(6) == 5
assert find_ways(8) == 14


"""Write a python function to check whether the given string is a binary string or not."""

def check(

Write a python function to check whether the given string is a binary string or not.
The function should be named `check`.

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

assert check("01010101010") == "Yes"
assert check("name0") == "No"
assert check("101") == "Yes"


"""Write a python function to minimize the length of the string by removing occurrence of only one character."""

def minimum_Length(

Write a python function to minimize the length of the string by removing occurrence of only one character.
The function should be named `minimum_Length`.

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

assert minimum_Length("mnm") == 1
assert minimum_Length("abcda") == 3
assert minimum_Length("abcb") == 2


"""Write a python function to find the first element occurring k times in a given array."""

def first_Element(

Write a python function to find the first element occurring k times in a given array.
The function should be named `first_Element`.

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


"""Write a python function to check whether all the characters in a given string are unique."""

def unique_Characters(

Write a python function to check whether all the characters in a given string are unique.
The function should be named `unique_Characters`.

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

assert unique_Characters('aba') == False
assert unique_Characters('abc') == True
assert unique_Characters('abab') == False


"""Write a function to remove a specified column from a given nested list."""

def remove_column(

Write a function to remove a specified column from a given nested list.
The function should be named `remove_column`.

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


"""Write a function to find t-nth term of arithemetic progression."""

def tn_ap(

Write a function to find t-nth term of arithemetic progression.
The function should be named `tn_ap`.

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


"""Write a python function to count the number of rectangles in a circle of radius r."""

def count_Rectangles(

Write a python function to count the number of rectangles in a circle of radius r.
The function should be named `count_Rectangles`.

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

assert count_Rectangles(2) == 8
assert count_Rectangles(1) == 1
assert count_Rectangles(0) == 0


"""Write a function to find the third angle of a triangle using two angles."""

def find_angle(

Write a function to find the third angle of a triangle using two angles.
The function should be named `find_angle`.

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

assert find_angle(47,89)==44
assert find_angle(45,95)==40
assert find_angle(50,40)==90


"""Write a function to find the maximum element of all the given tuple records."""

def find_max(

Write a function to find the maximum element of all the given tuple records.
The function should be named `find_max`.

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


"""Write a function to find modulo division of two lists using map and lambda function."""

def moddiv_list(

Write a function to find modulo division of two lists using map and lambda function.
The function should be named `moddiv_list`.

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


"""Write a python function to check whether one root of the quadratic equation is twice of the other or not."""

def Check_Solution(

Write a python function to check whether one root of the quadratic equation is twice of the other or not.
The function should be named `Check_Solution`.

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

assert Check_Solution(1,3,2) == "Yes"
assert Check_Solution(1,2,3) == "No"
assert Check_Solution(1,-5,6) == "No"


"""Write a function to find the n’th carol number."""

def get_carol(

Write a function to find the n’th carol number.
The function should be named `get_carol`.

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

assert get_carol(2) == 7
assert get_carol(4) == 223
assert get_carol(5) == 959


"""Write a function to remove empty lists from a given list of lists."""

def remove_empty(

Write a function to remove empty lists from a given list of lists.
The function should be named `remove_empty`.

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


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

def max_occurrences(

Write a python function to find the item with maximum occurrences 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 function to add the k elements to each element in the tuple."""

def add_K_element(

Write a function to add the k elements to each element in the tuple.
The function should be named `add_K_element`.

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


"""Write a function to find the number of flips required to make the given binary string a sequence of alternate characters."""

def min_flip_to_make_string_alternate(

Write a function to find the number of flips required to make the given binary string a sequence of alternate characters.
The function should be named `min_flip_to_make_string_alternate`.

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

assert min_flip_to_make_string_alternate("0001010111") == 2
assert min_flip_to_make_string_alternate("001") == 1
assert min_flip_to_make_string_alternate("010111011") == 2


"""Write a python function to count the number of digits of a given number."""

def count_Digit(

Write a python function to count the number of digits of a given number.
The function should be named `count_Digit`.

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

assert count_Digit(12345) == 5
assert count_Digit(11223305) == 8
assert count_Digit(4123459) == 7


"""Write a python function to find the largest product of the pair of adjacent elements from a given list of integers."""

def adjacent_num_product(

Write a python function to find the largest product of the pair of adjacent elements from a given list of integers.
The function should be named `adjacent_num_product`.

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

assert adjacent_num_product([1,2,3,4,5,6]) == 30
assert adjacent_num_product([1,2,3,4,5]) == 20
assert adjacent_num_product([2,3]) == 6


"""Write a function to check if a binary tree is balanced or not."""

def is_tree_balanced(

Write a function to check if a binary tree is balanced or not.
The function should be named `is_tree_balanced`.

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

root = Node(1)
root.left = Node(2)
root.right = Node(3)
root.left.left = Node(4)
root.left.right = Node(5)
root.left.left.left = Node(8)
root1 = Node(1)
root1.left = Node(2)
root1.right = Node(3)
root1.left.left = Node(4)
root1.left.right = Node(5)
root1.right.left = Node(6)
root1.left.left.left = Node(7)
root2 = Node(1)
root2.left = Node(2)
root2.right = Node(3)
root2.left.left = Node(4)
root2.left.right = Node(5)
root2.left.left.left = Node(7)
assert is_tree_balanced(root) == False
assert is_tree_balanced(root1) == True
assert is_tree_balanced(root2) == False


"""Write a function to repeat the given tuple n times."""

def repeat_tuples(

Write a function to repeat the given tuple n times.
The function should be named `repeat_tuples`.

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


"""Write a function to find the lateral surface area of cuboid"""

def lateralsurface_cuboid(

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

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

assert lateralsurface_cuboid(8,5,6)==156
assert lateralsurface_cuboid(7,9,10)==320
assert lateralsurface_cuboid(10,20,30)==1800


"""Write a function to sort a tuple by its float element."""

def float_sort(

Write a function to sort a tuple by its float element.
The function should be named `float_sort`.

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


"""Write a function to find the smallest missing element in a sorted array."""

def smallest_missing(

Write a function to find the smallest missing element in a sorted array.
The function should be named `smallest_missing`.

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


"""Write a function to sort a given list of elements in ascending order using heap queue algorithm."""

def heap_assending(

Write a function to sort a given list of elements in ascending order using heap queue algorithm.
The function should be named `heap_assending`.

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


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

def volume_cuboid(

Write a function to find the volume of a cuboid.
The function should be named `volume_cuboid`.

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

assert volume_cuboid(1,2,3)==6
assert volume_cuboid(5,7,9)==315
assert volume_cuboid(10,15,21)==3150


"""Write a function to print all permutations of a given string including duplicates."""

def permute_string(

Write a function to print all permutations of a given string including duplicates.
The function should be named `permute_string`.

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

assert permute_string('ab')==['ab', 'ba']
assert permute_string('abc')==['abc', 'bac', 'bca', 'acb', 'cab', 'cba']
assert permute_string('abcd')==['abcd', 'bacd', 'bcad', 'bcda', 'acbd', 'cabd', 'cbad', 'cbda', 'acdb', 'cadb', 'cdab', 'cdba', 'abdc', 'badc', 'bdac', 'bdca', 'adbc', 'dabc', 'dbac', 'dbca', 'adcb', 'dacb', 'dcab', 'dcba']


"""Write a function to round the given number to the nearest multiple of a specific number."""

def round_num(

Write a function to round the given number to the nearest multiple of a specific number.
The function should be named `round_num`.

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


"""Write a function to remove tuple elements that occur more than once and replace the duplicates with some custom value."""

def remove_replica(

Write a function to remove tuple elements that occur more than once and replace the duplicates with some custom value.
The function should be named `remove_replica`.

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


"""Write a python function to remove all occurrences of a character in a given string."""

def remove_Char(

Write a python function to remove all occurrences of a character in a given string.
The function should be named `remove_Char`.

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

assert remove_Char("aba",'a') == "b"
assert remove_Char("toggle",'g') == "tole"
assert remove_Char("aabbc",'b') == "aac"


"""Write a python function to shift last element to first position in the given list."""

def move_first(

Write a python function to shift last element to first position in the given list.
The function should be named `move_first`.

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


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

def surfacearea_cuboid(

Write a function to find the surface area of a cuboid.
The function should be named `surfacearea_cuboid`.

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

assert surfacearea_cuboid(1,2,3)==22
assert surfacearea_cuboid(5,7,9)==286
assert surfacearea_cuboid(10,15,21)==1350


"""Write a function to generate a two-dimensional array."""

def multi_list(

Write a function to generate a two-dimensional array.
The function should be named `multi_list`.

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


"""Write a function to sort a list of lists by a given index of the inner list."""

def index_on_inner_list(

Write a function to sort a list of lists by a given index of the inner list.
The function should be named `index_on_inner_list`.

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

assert index_on_inner_list([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,0)==[('Beau Turnbull', 94, 98), ('Brady Kent', 97, 96), ('Greyson Fulton', 98, 99), ('Wyatt Knott', 91, 94)]
assert index_on_inner_list([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,1)==[('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98), ('Brady Kent', 97, 96), ('Greyson Fulton', 98, 99)]
assert index_on_inner_list([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,2)==[('Wyatt Knott', 91, 94), ('Brady Kent', 97, 96), ('Beau Turnbull', 94, 98), ('Greyson Fulton', 98, 99)]


"""Write a function to find the number of rotations in a circularly sorted array."""

def find_rotation_count(

Write a function to find the number of rotations in a circularly sorted array.
The function should be named `find_rotation_count`.

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


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

def even_bit_toggle_number(

Write a python function to toggle all odd 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) == 15
assert even_bit_toggle_number(20) == 1
assert even_bit_toggle_number(30) == 11


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

def frequency_Of_Smallest(

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

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

assert frequency_Of_Smallest(5,[1,2,3,4,3]) == 1
assert frequency_Of_Smallest(7,[3,1,2,5,6,2,3]) == 1
assert frequency_Of_Smallest(7,[3,3,6,3,7,4,9]) == 3


"""Write a function to find the n'th perrin number using recursion."""

def get_perrin(

Write a function to find the n'th perrin number using recursion.
The function should be named `get_perrin`.

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

assert get_perrin(9) == 12
assert get_perrin(4) == 2
assert get_perrin(6) == 5


"""Write a function to find out the minimum no of swaps required for bracket balancing in the given string."""

def swap_count(

Write a function to find out the minimum no of swaps required for bracket balancing in the given string.
The function should be named `swap_count`.

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

assert swap_count("[]][][") == 2
assert swap_count("[[][]]") == 0
assert swap_count("[[][]]][") == 1


"""Write a python function to check whether the hexadecimal number is even or odd."""

def even_or_odd(

Write a python function to check whether the hexadecimal number is even or odd.
The function should be named `even_or_odd`.

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

assert even_or_odd("AB3454D") =="Odd"
assert even_or_odd("ABC") == "Even"
assert even_or_odd("AAD") == "Odd"


"""Write a python function to find the highest power of 2 that is less than or equal to n."""

def highest_Power_of_2(

Write a python function to find the highest power of 2 that is less than or equal to n.
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 the n'th lucas number."""

def find_lucas(

Write a function to find the n'th lucas number.
The function should be named `find_lucas`.

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

assert find_lucas(9) == 76
assert find_lucas(4) == 7
assert find_lucas(3) == 4


"""Write a function to insert a given string at the beginning of all items in a list."""

def add_string(

Write a function to insert a given string at the beginning of all items in a list.
The function should be named `add_string`.

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

assert add_string([1,2,3,4],'temp{0}')==['temp1', 'temp2', 'temp3', 'temp4']
assert add_string(['a','b','c','d'], 'python{0}')==[ 'pythona', 'pythonb', 'pythonc', 'pythond']
assert add_string([5,6,7,8],'string{0}')==['string5', 'string6', 'string7', 'string8']


"""Write a function to convert more than one list to nested dictionary."""

def convert_list_dictionary(

Write a function to convert more than one list to nested dictionary.
The function should be named `convert_list_dictionary`.

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


"""Write a function to find the maximum sum possible by using the given equation f(n) = max( (f(n/2) + f(n/3) + f(n/4) + f(n/5)), n)."""

def get_max_sum(

Write a function to find the maximum sum possible by using the given equation f(n) = max( (f(n/2) + f(n/3) + f(n/4) + f(n/5)), n).
The function should be named `get_max_sum`.

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

assert get_max_sum(60) == 106
assert get_max_sum(10) == 12
assert get_max_sum(2) == 2


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

def max_length_list(

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

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


"""Write a function to check if given tuple is distinct or not."""

def check_distinct(

Write a function to check if given tuple is distinct or not.
The function should be named `check_distinct`.

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

assert check_distinct((1, 4, 5, 6, 1, 4)) == False
assert check_distinct((1, 4, 5, 6)) == True
assert check_distinct((2, 3, 4, 5, 6)) == True


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

def first_non_repeating_character(

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

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

assert first_non_repeating_character("abcabc") == None
assert first_non_repeating_character("abc") == "a"
assert first_non_repeating_character("ababc") == "c"


"""Write a function to check whether the given string starts and ends with the same character or not using regex."""

def check_char(

Write a function to check whether the given string starts and ends with the same character or not using regex.
The function should be named `check_char`.

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

assert check_char("abba") == "Valid"
assert check_char("a") == "Valid"
assert check_char("abcd") == "Invalid"


"""Write a function to find the median of three specific numbers."""

def median_numbers(

Write a function to find the median of three specific numbers.
The function should be named `median_numbers`.

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

assert median_numbers(25,55,65)==55.0
assert median_numbers(20,10,30)==20.0
assert median_numbers(15,45,75)==45.0


"""Write a function to compute the sum of digits of each number of a given list."""

def sum_of_digits(

Write a function to compute the sum of digits of each number of a given list.
The function should be named `sum_of_digits`.

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


"""Write a function to perform the mathematical bitwise xor operation across the given tuples."""

def bitwise_xor(

Write a function to perform the mathematical bitwise xor operation across the given tuples.
The function should be named `bitwise_xor`.

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


"""Write a function to extract the frequency of unique tuples in the given list order irrespective."""

def extract_freq(

Write a function to extract the frequency of unique tuples in the given list order irrespective.
The function should be named `extract_freq`.

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


"""Write a function to perform index wise addition of tuple elements in the given two nested tuples."""

def add_nested_tuples(

Write a function to perform index wise addition of tuple elements in the given two nested tuples.
The function should be named `add_nested_tuples`.

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


"""Write a function to compute the value of ncr%p."""

def ncr_modp(

Write a function to compute the value of ncr%p.
The function should be named `ncr_modp`.

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


"""Write a function to check if a url is valid or not using regex."""

def is_valid_URL(

Write a function to check if a url is valid or not using regex.
The function should be named `is_valid_URL`.

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

assert is_valid_URL("https://www.google.com") == True
assert is_valid_URL("https:/www.gmail.com") == False
assert is_valid_URL("https:// www.redit.com") == False


"""Write a python function to find the minimum of two numbers."""

def minimum(

Write a python function to find the minimum of two numbers.
The function should be named `minimum`.

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

assert minimum(1,2) == 1
assert minimum(-5,-4) == -5
assert minimum(0,0) == 0


"""Write a function to check whether an element exists within a tuple."""

def check_tuplex(

Write a function to check whether an element exists within a tuple.
The function should be named `check_tuplex`.

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


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

def find_Parity(

Write a python function to find the parity of a given number.
The function should be named `find_Parity`.

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

assert find_Parity(12) == "Even Parity"
assert find_Parity(7) == "Odd Parity"
assert find_Parity(10) == "Even Parity"


"""Write a function to create the next bigger number by rearranging the digits of a given number."""

def rearrange_bigger(

Write a function to create the next bigger number by rearranging the digits of a given number.
The function should be named `rearrange_bigger`.

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

assert rearrange_bigger(12)==21
assert rearrange_bigger(10)==False
assert rearrange_bigger(102)==120


"""Write a function to find k number of pairs which consist of one element from the first array and one element from the second array."""

def k_smallest_pairs(

Write a function to find k number of pairs which consist of one element from the first array and one element from the second array.
The function should be named `k_smallest_pairs`.

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


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

def min_product_tuple(

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

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


"""Write a function to find the minimum value in a given heterogeneous list."""

def min_val(

Write a function to find the minimum value in a given heterogeneous list.
The function should be named `min_val`.

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

assert min_val(['Python', 3, 2, 4, 5, 'version'])==2
assert min_val(['Python', 15, 20, 25])==15
assert min_val(['Python', 30, 20, 40, 50, 'version'])==20


"""Write a function to convert the given snake case string to camel case string by using regex."""

def snake_to_camel(

Write a function to convert the given snake case string to camel case string by using regex.
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('android_tv') == 'AndroidTv'
assert snake_to_camel('google_pixel') == 'GooglePixel'
assert snake_to_camel('apple_watch') == 'AppleWatch'


"""Write a python function to remove odd numbers from a given list."""

def remove_odd(

Write a python function to remove odd numbers from a given list.
The function should be named `remove_odd`.

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


"""Write a function to extract the nth element from a given list of tuples."""

def extract_nth_element(

Write a function to extract the nth element from a given list of tuples.
The function should be named `extract_nth_element`.

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

assert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,0)==['Greyson Fulton', 'Brady Kent', 'Wyatt Knott', 'Beau Turnbull']
assert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)] ,2)==[99, 96, 94, 98]
assert extract_nth_element([('Greyson Fulton', 98, 99), ('Brady Kent', 97, 96), ('Wyatt Knott', 91, 94), ('Beau Turnbull', 94, 98)],1)==[98, 97, 91, 94]


"""Write a python function to check whether the value exists in a sequence or not."""

def overlapping(

Write a python function to check whether the value exists in a sequence or not.
The function should be named `overlapping`.

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

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


"""Write a python function to find a pair with highest product from a given array of integers."""

def max_Product(

Write a python function to find a pair with highest product from a given array of integers.
The function should be named `max_Product`.

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


"""Write a function to find the maximum sum we can make by dividing number in three parts recursively and summing them up together for the given number."""

def breakSum(

Write a function to find the maximum sum we can make by dividing number in three parts recursively and summing them up together for the given number.
The function should be named `breakSum`.

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

assert breakSum(12) == 13
assert breakSum(24) == 27
assert breakSum(23) == 23


"""Write a function to find common first element in given list of tuple."""

def group_tuples(

Write a function to find common first element in given list of tuple.
The function should be named `group_tuples`.

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


"""Write a python function to find the sublist having maximum length."""

def Find_Max(

Write a python function to find the sublist having maximum length.
The function should be named `Find_Max`.

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


"""Write a function to round every number of a given list of numbers and print the total sum multiplied by the length of the list."""

def round_and_sum(

Write a function to round every number of a given list of numbers and print the total sum multiplied by the length of the list.
The function should be named `round_and_sum`.

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


"""Write a python function to find the cube sum of first n even natural numbers."""

def cube_Sum(

Write a python function to find the cube sum of first n even natural numbers.
The function should be named `cube_Sum`.

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

assert cube_Sum(2) == 72
assert cube_Sum(3) == 288
assert cube_Sum(4) == 800


"""Write a function to concatenate each element of tuple by the delimiter."""

def concatenate_tuple(

Write a function to concatenate each element of tuple by the delimiter.
The function should be named `concatenate_tuple`.

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

assert concatenate_tuple(("ID", "is", 4, "UTS") ) == 'ID-is-4-UTS'
assert concatenate_tuple(("QWE", "is", 4, "RTY") ) == 'QWE-is-4-RTY'
assert concatenate_tuple(("ZEN", "is", 4, "OP") ) == 'ZEN-is-4-OP'


"""Write a python function to find the average of cubes of first n natural numbers."""

def find_Average_Of_Cube(

Write a python function to find the average of cubes of first n natural numbers.
The function should be named `find_Average_Of_Cube`.

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

assert find_Average_Of_Cube(2) == 4.5
assert find_Average_Of_Cube(3) == 12
assert find_Average_Of_Cube(1) == 1


"""Write a function to solve gold mine problem."""

def get_maxgold(

Write a function to solve gold mine problem.
The function should be named `get_maxgold`.

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


"""Write a function to extract only the rear index element of each string in the given tuple."""

def extract_rear(

Write a function to extract only the rear index element of each string in the given tuple.
The function should be named `extract_rear`.

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

assert extract_rear(('Mers', 'for', 'Vers') ) == ['s', 'r', 's']
assert extract_rear(('Avenge', 'for', 'People') ) == ['e', 'r', 'e']
assert extract_rear(('Gotta', 'get', 'go') ) == ['a', 't', 'o']


"""Write a function to count the number of sublists containing a particular element."""

def count_element_in_list(

Write a function to count the number of sublists containing a particular element.
The function should be named `count_element_in_list`.

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


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

def filter_oddnumbers(

Write a function to filter odd numbers using lambda function.
The function should be named `filter_oddnumbers`.

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


"""Write a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format by using regex."""

def change_date_format(

Write a function to convert a date of yyyy-mm-dd format to dd-mm-yyyy format by using regex.
The function should be named `change_date_format`.

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


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

def shell_sort(

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

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


"""Write a function to extract the elementwise and tuples from the given two tuples."""

def and_tuples(

Write a function to extract the elementwise and tuples from the given two tuples.
The function should be named `and_tuples`.

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


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

def parabola_directrix(

Write a function to find the directrix of a parabola.
The function should be named `parabola_directrix`.

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

assert parabola_directrix(5,3,2)==-198
assert parabola_directrix(9,8,4)==-2336
assert parabola_directrix(2,4,6)==-130


"""Write a function that takes two lists and returns true if they have at least one common element."""

def common_element(

Write a function that takes two lists and returns true if they have at least one common element.
The function should be named `common_element`.

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


"""Write a function to find the median of a trapezium."""

def median_trapezium(

Write a function to find the median of a trapezium.
The function should be named `median_trapezium`.

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

assert median_trapezium(15,25,35)==20
assert median_trapezium(10,20,30)==15
assert median_trapezium(6,9,4)==7.5


"""Write a function to check whether the entered number is greater than the elements of the given array."""

def check_greater(

Write a function to check whether the entered number is greater than the elements of the given array.
The function should be named `check_greater`.

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

assert check_greater([1, 2, 3, 4, 5], 4) == 'No, entered number is less than those in the array'
assert check_greater([2, 3, 4, 5, 6], 8) == 'Yes, the entered number is greater than those in the array'
assert check_greater([9, 7, 4, 8, 6, 1], 11) == 'Yes, the entered number is greater than those in the array'


"""Write a function that matches a string that has an a followed by one or more b's."""

def text_match_one(

Write a function that matches a string that has an a followed by one or more b's.
The function should be named `text_match_one`.

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

assert text_match_one("ac")==('Not matched!')
assert text_match_one("dc")==('Not matched!')
assert text_match_one("abba")==('Found a match!')


"""Write a python function to find the last digit of a given number."""

def last_Digit(

Write a python function to find the last digit of a given number.
The function should be named `last_Digit`.

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

assert last_Digit(123) == 3
assert last_Digit(25) == 5
assert last_Digit(30) == 0


"""Write a python function to print negative numbers in a list."""

def neg_nos(

Write a python function to print negative numbers in a list.
The function should be named `neg_nos`.

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


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

def remove_odd(

Write a function to remove odd characters in a string.
The function should be named `remove_odd`.

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

assert remove_odd("python")==("yhn")
assert remove_odd("program")==("rga")
assert remove_odd("language")==("agae")


"""Write a function to count bidirectional tuple pairs."""

def count_bidirectional(

Write a function to count bidirectional tuple pairs.
The function should be named `count_bidirectional`.

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


"""Write a function to convert a list of multiple integers into a single integer."""

def multiple_to_single(

Write a function to convert a list of multiple integers into a single integer.
The function should be named `multiple_to_single`.

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


"""Write a function to find all adverbs and their positions in a given sentence."""

def find_adverb_position(

Write a function to find all adverbs and their positions in a given sentence.
The function should be named `find_adverb_position`.

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

assert find_adverb_position("clearly!! we can see the sky")==(0, 7, 'clearly')
assert find_adverb_position("seriously!! there are many roses")==(0, 9, 'seriously')
assert find_adverb_position("unfortunately!! sita is going to home")==(0, 13, 'unfortunately')


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

def surfacearea_cube(

Write a function to find the surface area of a cube.
The function should be named `surfacearea_cube`.

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

assert surfacearea_cube(5)==150
assert surfacearea_cube(3)==54
assert surfacearea_cube(10)==600


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

def positive_count(

Write a function to find the ration of positive numbers in an array of integers.
The function should be named `positive_count`.

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


"""Write a python function to find the largest negative number from the given list."""

def largest_neg(

Write a python function to find the largest negative number from the given list.
The function should be named `largest_neg`.

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


"""Write a function to trim each tuple by k in the given tuple list."""

def trim_tuple(

Write a function to trim each tuple by k in the given tuple list.
The function should be named `trim_tuple`.

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


"""Write a function to perform index wise multiplication of tuple elements in the given two tuples."""

def index_multiplication(

Write a function to perform index wise multiplication of tuple elements in the given two tuples.
The function should be named `index_multiplication`.

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


"""Write a python function to count the occurence of all elements of list in a tuple."""

def count_Occurrence(

Write a python function to count the occurence of all elements of list in a tuple.
The function should be named `count_Occurrence`.

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


"""Write a function to find cubes of individual elements in a list using lambda function."""

def cube_nums(

Write a function to find cubes of individual elements in a list using lambda function.
The function should be named `cube_nums`.

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


"""Write a function to calculate the sum of perrin numbers."""

def cal_sum(

Write a function to calculate the sum of perrin numbers.
The function should be named `cal_sum`.

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

assert cal_sum(9) == 49
assert cal_sum(10) == 66
assert cal_sum(11) == 88


"""Write a python function to check whether the triangle is valid or not if 3 points are given."""

def check_Triangle(

Write a python function to check whether the triangle is valid or not if 3 points are given.
The function should be named `check_Triangle`.

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

assert check_Triangle(1,5,2,5,4,6) == 'Yes'
assert check_Triangle(1,1,1,4,1,5) == 'No'
assert check_Triangle(1,1,1,1,1,1) == 'No'


"""Write a function to extract specified size of strings from a give list of string values."""

def extract_string(

Write a function to extract specified size of strings from a give list of string values.
The function should be named `extract_string`.

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

assert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,8)==['practice', 'solution']
assert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,6)==['Python']
assert extract_string(['Python', 'list', 'exercises', 'practice', 'solution'] ,9)==['exercises']


"""Write a function to remove all whitespaces from the given string using regex."""

def remove_whitespaces(

Write a function to remove all whitespaces from the given string using regex.
The function should be named `remove_whitespaces`.

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

assert remove_whitespaces(' Google    Flutter ') == 'GoogleFlutter'
assert remove_whitespaces(' Google    Dart ') == 'GoogleDart'
assert remove_whitespaces(' iOS    Swift ') == 'iOSSwift'


"""Write a function that gives loss amount if the given amount has loss else return none."""

def loss_amount(

Write a function that gives loss amount if the given amount has loss else return none.
The function should be named `loss_amount`.

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

assert loss_amount(1500,1200)==None
assert loss_amount(100,200)==100
assert loss_amount(2000,5000)==3000


"""Write a python function to find the sum of even factors of a number."""

def sumofFactors(

Write a python function to find the sum of even factors of a number.
The function should be named `sumofFactors`.

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

assert sumofFactors(18) == 26
assert sumofFactors(30) == 48
assert sumofFactors(6) == 8


"""Write a function that matches a word containing 'z'."""

def text_match_wordz(

Write a function that matches a word containing 'z'.
The function should be named `text_match_wordz`.

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

assert text_match_wordz("pythonz.")==('Found a match!')
assert text_match_wordz("xyz.")==('Found a match!')
assert text_match_wordz("  lang  .")==('Not matched!')


"""Write a function to check whether the given month number contains 31 days or not."""

def check_monthnumb_number(

Write a function to check whether the given month number contains 31 days or not.
The function should be named `check_monthnumb_number`.

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

assert check_monthnumb_number(5)==True
assert check_monthnumb_number(2)==False
assert check_monthnumb_number(6)==False


"""Write a function to reverse strings in a given list of string values."""

def reverse_string_list(

Write a function to reverse strings in a given list of string values.
The function should be named `reverse_string_list`.

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

assert reverse_string_list(['Red', 'Green', 'Blue', 'White', 'Black'])==['deR', 'neerG', 'eulB', 'etihW', 'kcalB']
assert reverse_string_list(['john','amal','joel','george'])==['nhoj','lama','leoj','egroeg']
assert reverse_string_list(['jack','john','mary'])==['kcaj','nhoj','yram']


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

def Find_Min(

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

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


"""Write a function to find the area of a rectangle."""

def rectangle_area(

Write a function to find the area of a rectangle.
The function should be named `rectangle_area`.

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

assert rectangle_area(10,20)==200
assert rectangle_area(10,5)==50
assert rectangle_area(4,2)==8


"""Write a function to remove uppercase substrings from a given string by using regex."""

def remove_uppercase(

Write a function to remove uppercase substrings from a given string by using regex.
The function should be named `remove_uppercase`.

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

assert remove_uppercase('cAstyoUrFavoRitETVshoWs') == 'cstyoravoitshos'
assert remove_uppercase('wAtchTheinTernEtrAdIo') == 'wtchheinerntrdo'
assert remove_uppercase('VoicESeaRchAndreComMendaTionS') == 'oiceachndreomendaion'


"""Write a python function to get the first element of each sublist."""

def Extract(

Write a python function to get the first element of each sublist.
The function should be named `Extract`.

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


"""Write a python function to count the upper case characters in a given string."""

def upper_ctr(

Write a python function to count the upper case characters in a given string.
The function should be named `upper_ctr`.

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

assert upper_ctr('PYthon') == 1
assert upper_ctr('BigData') == 1
assert upper_ctr('program') == 0


"""Write a function to find all possible combinations of the elements of a given list."""

def combinations_list(

Write a function to find all possible combinations of the elements of a given list.
The function should be named `combinations_list`.

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

assert combinations_list(['orange', 'red', 'green', 'blue'])==[[], ['orange'], ['red'], ['red', 'orange'], ['green'], ['green', 'orange'], ['green', 'red'], ['green', 'red', 'orange'], ['blue'], ['blue', 'orange'], ['blue', 'red'], ['blue', 'red', 'orange'], ['blue', 'green'], ['blue', 'green', 'orange'], ['blue', 'green', 'red'], ['blue', 'green', 'red', 'orange']]
assert combinations_list(['red', 'green', 'blue', 'white', 'black', 'orange'])==[[], ['red'], ['green'], ['green', 'red'], ['blue'], ['blue', 'red'], ['blue', 'green'], ['blue', 'green', 'red'], ['white'], ['white', 'red'], ['white', 'green'], ['white', 'green', 'red'], ['white', 'blue'], ['white', 'blue', 'red'], ['white', 'blue', 'green'], ['white', 'blue', 'green', 'red'], ['black'], ['black', 'red'], ['black', 'green'], ['black', 'green', 'red'], ['black', 'blue'], ['black', 'blue', 'red'], ['black', 'blue', 'green'], ['black', 'blue', 'green', 'red'], ['black', 'white'], ['black', 'white', 'red'], ['black', 'white', 'green'], ['black', 'white', 'green', 'red'], ['black', 'white', 'blue'], ['black', 'white', 'blue', 'red'], ['black', 'white', 'blue', 'green'], ['black', 'white', 'blue', 'green', 'red'], ['orange'], ['orange', 'red'], ['orange', 'green'], ['orange', 'green', 'red'], ['orange', 'blue'], ['orange', 'blue', 'red'], ['orange', 'blue', 'green'], ['orange', 'blue', 'green', 'red'], ['orange', 'white'], ['orange', 'white', 'red'], ['orange', 'white', 'green'], ['orange', 'white', 'green', 'red'], ['orange', 'white', 'blue'], ['orange', 'white', 'blue', 'red'], ['orange', 'white', 'blue', 'green'], ['orange', 'white', 'blue', 'green', 'red'], ['orange', 'black'], ['orange', 'black', 'red'], ['orange', 'black', 'green'], ['orange', 'black', 'green', 'red'], ['orange', 'black', 'blue'], ['orange', 'black', 'blue', 'red'], ['orange', 'black', 'blue', 'green'], ['orange', 'black', 'blue', 'green', 'red'], ['orange', 'black', 'white'], ['orange', 'black', 'white', 'red'], ['orange', 'black', 'white', 'green'], ['orange', 'black', 'white', 'green', 'red'], ['orange', 'black', 'white', 'blue'], ['orange', 'black', 'white', 'blue', 'red'], ['orange', 'black', 'white', 'blue', 'green'], ['orange', 'black', 'white', 'blue', 'green', 'red']]
assert combinations_list(['red', 'green', 'black', 'orange'])==[[], ['red'], ['green'], ['green', 'red'], ['black'], ['black', 'red'], ['black', 'green'], ['black', 'green', 'red'], ['orange'], ['orange', 'red'], ['orange', 'green'], ['orange', 'green', 'red'], ['orange', 'black'], ['orange', 'black', 'red'], ['orange', 'black', 'green'], ['orange', 'black', 'green', 'red']]


"""Write a function to find the maximum product subarray of the given array."""

def max_subarray_product(

Write a function to find the maximum product subarray of the given array.
The function should be named `max_subarray_product`.

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


"""Write a function to check if all values are same in a dictionary."""

def check_value(

Write a function to check if all values are same in a dictionary.
The function should be named `check_value`.

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

assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},10)==False
assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},12)==True
assert check_value({'Cierra Vega': 12, 'Alden Cantrell': 12, 'Kierra Gentry': 12, 'Pierre Cox': 12},5)==False


"""Write a function to drop empty items from a given dictionary."""

def drop_empty(

Write a function to drop empty items from a given dictionary.
The function should be named `drop_empty`.

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

assert drop_empty({'c1': 'Red', 'c2': 'Green', 'c3':None})=={'c1': 'Red', 'c2': 'Green'}
assert drop_empty({'c1': 'Red', 'c2': None, 'c3':None})=={'c1': 'Red'}
assert drop_empty({'c1': None, 'c2': 'Green', 'c3':None})=={ 'c2': 'Green'}


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

def find_peak(

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

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


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

def decimal_to_Octal(

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

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

assert decimal_to_Octal(10) == 12
assert decimal_to_Octal(2) == 2
assert decimal_to_Octal(33) == 41


"""Write a function to find the maximum product formed by multiplying numbers of an increasing subsequence of that array."""

def max_product(

Write a function to find the maximum product formed by multiplying numbers of an increasing subsequence of that array.
The function should be named `max_product`.

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


"""Write a function to find the maximum profit earned from a maximum of k stock transactions"""

def max_profit(

Write a function to find the maximum profit earned from a maximum of k stock transactions
The function should be named `max_profit`.

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


"""Write a function to find the pairwise addition of the elements of the given tuples."""

def add_pairwise(

Write a function to find the pairwise addition of the elements of the given tuples.
The function should be named `add_pairwise`.

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


"""Write a python function to find remainder of array multiplication divided by n."""

def find_remainder(

Write a python function to find remainder of array multiplication divided by n.
The function should be named `find_remainder`.

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


"""Write a python function to check whether the given list contains consecutive numbers or not."""

def check_Consecutive(

Write a python function to check whether the given list contains consecutive numbers or not.
The function should be named `check_Consecutive`.

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

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


"""Write a function to find the tuple intersection of elements in the given tuple list irrespective of their order."""

def tuple_intersection(

Write a function to find the tuple intersection of elements in the given tuple list irrespective of their order.
The function should be named `tuple_intersection`.

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


"""Write a function to replace characters in a string."""

def replace_char(

Write a function to replace characters in a string.
The function should be named `replace_char`.

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

assert replace_char("polygon",'y','l')==("pollgon")
assert replace_char("character",'c','a')==("aharaater")
assert replace_char("python",'l','a')==("python")


"""Write a function to sort counter by value."""

def sort_counter(

Write a function to sort counter by value.
The function should be named `sort_counter`.

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

assert sort_counter({'Math':81, 'Physics':83, 'Chemistry':87})==[('Chemistry', 87), ('Physics', 83), ('Math', 81)]
assert sort_counter({'Math':400, 'Physics':300, 'Chemistry':250})==[('Math', 400), ('Physics', 300), ('Chemistry', 250)]
assert sort_counter({'Math':900, 'Physics':1000, 'Chemistry':1250})==[('Chemistry', 1250), ('Physics', 1000), ('Math', 900)]


"""Write a python function to find the sum of the largest and smallest value in a given array."""

def big_sum(

Write a python function to find the sum of the largest and smallest value in a given array.
The function should be named `big_sum`.

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


"""Write a python function to convert the given string to lower case."""

def is_lower(

Write a python function to convert the given string to lower case.
The function should be named `is_lower`.

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

assert is_lower("InValid") == "invalid"
assert is_lower("TruE") == "true"
assert is_lower("SenTenCE") == "sentence"


"""Write a function to remove lowercase substrings from a given string."""

def remove_lowercase(

Write a function to remove lowercase substrings from a given string.
The function should be named `remove_lowercase`.

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

assert remove_lowercase("PYTHon")==('PYTH')
assert remove_lowercase("FInD")==('FID')
assert remove_lowercase("STRinG")==('STRG')


"""Write a python function to find the first digit of a given number."""

def first_Digit(

Write a python function to find the first digit of a given number.
The function should be named `first_Digit`.

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

assert first_Digit(123) == 1
assert first_Digit(456) == 4
assert first_Digit(12) == 1


"""Write a python function to find the maximum occurring character in a given string."""

def get_max_occuring_char(

Write a python function to find the maximum occurring character in a given string.
The function should be named `get_max_occuring_char`.

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

assert get_max_occuring_char("data") == "a"
assert get_max_occuring_char("create") == "e"
assert get_max_occuring_char("brilliant girl") == "i"


"""Write a function to determine if there is a subset of the given set with sum equal to the given sum."""

def is_subset_sum(

Write a function to determine if there is a subset of the given set with sum equal to the given sum.
The function should be named `is_subset_sum`.

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


"""Write a function to find sequences of one upper case letter followed by lower case letters in the given string by using regex."""

def match(

Write a function to find sequences of one upper case letter followed by lower case letters in the given string by using regex.
The function should be named `match`.

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

assert match("Geeks") == 'Yes'
assert match("geeksforGeeks") == 'Yes'
assert match("geeks") == 'No'


"""Write a python function to find the first natural number whose factorial is divisible by x."""

def first_Factorial_Divisible_Number(

Write a python function to find the first natural number whose factorial is divisible by x.
The function should be named `first_Factorial_Divisible_Number`.

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

assert first_Factorial_Divisible_Number(10) == 5
assert first_Factorial_Divisible_Number(15) == 5
assert first_Factorial_Divisible_Number(5) == 4


"""Write a function to remove the matching tuples from the given two tuples."""

def remove_matching_tuple(

Write a function to remove the matching tuples from the given two tuples.
The function should be named `remove_matching_tuple`.

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

assert remove_matching_tuple([('Hello', 'dude'), ('How', 'are'), ('you', '?')], [('Hello', 'dude'), ('How', 'are')]) == [('you', '?')]
assert remove_matching_tuple([('Part', 'of'), ('the', 'journey'), ('is ', 'end')], [('Journey', 'the'), ('is', 'end')]) == [('Part', 'of'), ('the', 'journey'), ('is ', 'end')]
assert remove_matching_tuple([('Its', 'been'), ('a', 'long'), ('day', 'without')], [('a', 'long'), ('my', 'friend')]) == [('Its', 'been'), ('day', 'without')]


"""Write a function to find the largest palindromic number in the given array."""

def largest_palindrome(

Write a function to find the largest palindromic number in the given array.
The function should be named `largest_palindrome`.

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


"""Write a function to compute binomial probability for the given number."""

def binomial_probability(

Write a function to compute binomial probability for the given number.
The function should be named `binomial_probability`.

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


"""Write a function to sort a list of tuples in increasing order by the last element in each tuple."""

def sort_tuple(

Write a function to sort a list of tuples in increasing order by the last element in each tuple.
The function should be named `sort_tuple`.

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


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

def area_pentagon(

Write a function to find the area of a pentagon.
The function should be named `area_pentagon`.

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


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

def frequency_Of_Largest(

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

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

assert frequency_Of_Largest(5,[1,2,3,4,4]) == 2
assert frequency_Of_Largest(3,[5,6,5]) == 1
assert frequency_Of_Largest(4,[2,7,7,7]) == 3


"""Write a function to extract all the pairs which are symmetric in the given tuple list."""

def extract_symmetric(

Write a function to extract all the pairs which are symmetric in the given tuple list.
The function should be named `extract_symmetric`.

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


"""Write a function to find the sum of geometric progression series."""

def sum_gp(

Write a function to find the sum of geometric progression series.
The function should be named `sum_gp`.

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


"""Write a function to search an element in the given array by using binary search."""

def binary_search(

Write a function to search an element in the given array by using binary search.
The function should be named `binary_search`.

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

assert binary_search([1,2,3,5,8], 6) == False
assert binary_search([7, 8, 9, 10, 13], 10) == True
assert binary_search([11, 13, 14, 19, 22, 36], 23) == False


"""Write a function to calculate a grid of hexagon coordinates where function returns a list of lists containing 6 tuples of x, y point coordinates."""

def calculate_polygons(

Write a function to calculate a grid of hexagon coordinates where function returns a list of lists containing 6 tuples of x, y point coordinates.
The function should be named `calculate_polygons`.

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


"""Write a function to convert the given binary tuple to integer."""

def binary_to_integer(

Write a function to convert the given binary tuple to integer.
The function should be named `binary_to_integer`.

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


"""Write a function to remove lowercase substrings from a given string by using regex."""

def remove_lowercase(

Write a function to remove lowercase substrings from a given string by using regex.
The function should be named `remove_lowercase`.

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

assert remove_lowercase('KDeoALOklOOHserfLoAJSIskdsf') == 'KDALOOOHLAJSI'
assert remove_lowercase('ProducTnamEstreAmIngMediAplAYer') == 'PTEAIMAAY'
assert remove_lowercase('maNufacTuredbYSheZenTechNolOGIes') == 'NTYSZTNOGI'


"""Write a function to find the smallest integers from a given list of numbers using heap queue algorithm."""

def heap_queue_smallest(

Write a function to find the smallest integers from a given list of numbers using heap queue algorithm.
The function should be named `heap_queue_smallest`.

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


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

def surfacearea_cone(

Write a function to find the surface area of a cone.
The function should be named `surfacearea_cone`.

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


"""Write a python function to find gcd of two positive integers."""

def gcd(

Write a python function to find gcd of two positive integers.
The function should be named `gcd`.

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

assert gcd(12, 17) == 1
assert gcd(4,6) == 2
assert gcd(2,9) == 1


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

def diameter_circle(

Write a function to find the diameter of a circle.
The function should be named `diameter_circle`.

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

assert diameter_circle(10)==20
assert diameter_circle(40)==80
assert diameter_circle(15)==30


"""Write a function to concatenate all elements of the given list into a string."""

def concatenate_elements(

Write a function to concatenate all elements of the given list into a string.
The function should be named `concatenate_elements`.

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

assert concatenate_elements(['hello','there','have','a','rocky','day'] ) == '  hello there have a rocky day'
assert concatenate_elements([ 'Hi', 'there', 'How','are', 'you'] ) == '  Hi there How are you'
assert concatenate_elements([ 'Part', 'of', 'the','journey', 'is', 'end'] ) == '  Part of the journey is end'


"""Write a python function to find common divisor between two numbers in a given pair."""

def num_comm_div(

Write a python function to find common divisor between two numbers in a given pair.
The function should be named `num_comm_div`.

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

assert num_comm_div(2,4) == 2
assert num_comm_div(2,8) == 2
assert num_comm_div(12,24) == 6


"""Write a python function to find remainder of two numbers."""

def find(

Write a python function to find remainder of two numbers.
The function should be named `find`.

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

assert find(3,3) == 0
assert find(10,3) == 1
assert find(16,5) == 1


"""Write a function to add consecutive numbers of a given list."""

def add_consecutive_nums(

Write a function to add consecutive numbers of a given list.
The function should be named `add_consecutive_nums`.

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


"""Write a python function to find the cube sum of first n natural numbers."""

def sum_Of_Series(

Write a python function to find the cube sum of first n natural numbers.
The function should be named `sum_Of_Series`.

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

assert sum_Of_Series(5) == 225
assert sum_Of_Series(2) == 9
assert sum_Of_Series(3) == 36


"""Write a function to move all zeroes to the end of the given array."""

def re_order(

Write a function to move all zeroes to the end of the given array.
The function should be named `re_order`.

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