len for in 06d for in range 1000000 if sum map int sum map int

1
len([x for x in ["%06d"%x for x in range(1000000)] if sum(map(int,x[0:3])) == sum(map(int,x[3:6]))])