Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
222 B
2
Indexable
Never
str1 = '1111111'
str2 = '2222222'

if len(str1) == len(str2):
    str3 = ''
    for i in range(len(str1)):
        str3 += str1[i] + str2[i]
    print(str3)
else:
    print('длины строк не равны')
Leave a Comment