SyntaxFix
Write A Post
Hire A Developer
Questions
I went with a purlely mathematical solution:
def front_back(a, b): return a[:(len(a)+1)//2]+b[:(len(b)+1)//2]+a[(len(a)+1)//2:]+b[(len(b)+1)//2:]