6 lines
151 B
Python
6 lines
151 B
Python
def chars_mix_up(a, b):
|
|
new_a = b[:2] + a[2:]
|
|
new_b = a[:2] + b[2:]
|
|
|
|
return new_a + ' ' + new_b
|
|
print(chars_mix_up('abc', 'xyz')) |