SyntaxFix
Write A Post
Hire A Developer
Questions
def splitter(A): B = A[0:len(A)//2] C = A[len(A)//2:] return (B,C)
I tested, and the double slash is required to force int division in python 3. My original post was correct, although wysiwyg broke in Opera, for some reason.