I have a file I'm parsing, on each line in the same column are one of the values; 0, 1 or -1. I want to parse this so that the numeric values are all in line as below. I am trying to this via an if statement with and/or operators. I cannot get my head around the and/or as when I test this with a print statement, output either prints 1's or prints 0's.
Desired output: 0 1 -1 if number.startswith('1' and '0'): return number.append(' ') print number