– Write a Python program, in a file called concat_strings.py, that includes the following functions: • orderedConcat, a recursive function that takes two alphabetically-ordered strings and merges them, leaving the letters in alphabetical order. Note that the strings may be different lengths. a main method that inputs two ordered strings and calls the orderedConcat method to return a resulting merged, ordered string. Your main method should print the two input strings and the result. Note: You may not use any of the built-in methods for string concatenation or ordering, but you may use the len() function and the slice operator (:). You may assume that the input strings are already ordered. Sample input/output: Enter the first ordered string: acdrt Enter the second ordered string: bdet First string: acdrt Second string: bdet Result: abcddertt More sample input/output: Enter the first ordered string: DEab Enter the second ordered string: BFxz First string: DEab Second string: BFxz Result: BDEFabxz Show transcribed image text – Write a Python program, in a file called concat_strings.py, that includes the following functions: • orderedConcat, a recursive function that takes two alphabetically-ordered strings and merges them, leaving the letters in alphabetical order. Note that the strings may be different lengths. a main method that inputs two ordered strings and calls the orderedConcat method to return a resulting merged, ordered string. Your main method should print the two input strings and the result. Note: You may not use any of the built-in methods for string concatenation or ordering, but you may use the len() function and the slice operator (:). You may assume that the input strings are already ordered. Sample input/output: Enter the first ordered string: acdrt Enter the second ordered string: bdet First string: acdrt Second string: bdet Result: abcddertt More sample input/output: Enter the first ordered string: DEab Enter the second ordered string: BFxz First string: DEab Second string: BFxz Result: BDEFabxz
Expert Answer
Answer to – Write a Python program, in a file called concat_strings.py, that includes the following functions: • orderedConcat, …