Question #142840

Concatenate the two strings into a long string and print the long string. The longer string must be concatenated in front of the shorter one.


Expert's answer

Let's assume, we have strings s1 and s2

s = s1 + s2 if len(s1) >= len(s2) else s2 + s1
print(s)
LATEST TUTORIALS
APPROVED BY CLIENTS