Using Python Programming Recursive Method Must Write Function Alternatecharacters Weaves T Q37229323

Using python programming and recursive method You must write afunction alternateCharacters() that weaves twostrings together onecharacter at a time, and returns the resulting string.You canassume that the user will input two strings.REMINDER: You are notpermitted to use any kind of loop to completethis or other parts ofthehomework.#########################################################alternateCharacters(): Given two strings, return a string that#alternates characters between the two strings# Input: phrase1: thefirst string# phrase2: the second string# Output: a string thatalternates characters between phrase1 and# phrase2

linux[0]$ python hw6_part2.py

Say something: abcd

Say something else: 1234

a1b2c3d4

linux[0]$ python hw6_part2.pySay something: How do you do,fellow children?

Say something else: What is up, other humans?

HWohwa td oi

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.