Write function named foldstringsstring1 string2 that takes


Write function, named foldStrings(string1, string2) that takes, as arguments, two strings. If the two strings are equal in length, the function returns a string that is formed by alternating characters in each of the two strings. If the two strings are not equal in length, the function returns the string "The two strings are not equal in length." For example,

>>>foldStrings("abc", "def")

should return the string "adbecf" and

>>>foldStrings("a", "bc")

should return the string "The two strings are not equal in length."

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write function named foldstringsstring1 string2 that takes
Reference No:- TGS02749796

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)