"stdout error" on executing below code in interpreter.
def stdin(s): if (len(s)>=2 and len(s)<=10000): ev=[s[i] for i in range(len(s)) if i%2==0] od=[s[i] for i in range(len(s)) if i%2!=0] even=''.join(map(str,ev)) odd=''.join(map(str,od)) print("{0} {1}".format(even,odd)) if __name__ == '__main__': s = input().strip() stdin(s)
ABCDEFG ACEG BDF
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)