write a program in python that ask the user to enter two strings of the same length.the program should then check to see if the strings are of the same length.if they are not,the program should print an appropraite message and exit.if they are of the same length,the program should alternate the characters of the two strings.¶
Answers
Answered by
3
Answer:
kfdiefi's'skdjjdrjjd shdkbdjdd shekebd dudbhfb d dhdkdn d DVD rhendjne djksnd d djdb dhe d e dbfbns dbdkf f jdbdb
Answered by
10
Answer:
a=input("1st string ")
b=input("2nd string ")
new=""
if(len(a)!=len(b)):
print("sorry!length not matches")
else:
for i in range(0,len(a)):
new+=a[i]
new+=b[i]
print(new)
Explanation:
Example:
a="ACE"
b="BDF"
then new="ABCDEF"
Hope it s helpful
please mark me brainliest!
Similar questions