I want to read from some file lines like this A = B = 411
Without any whitespaces/spaces.I have tried 

```
import os
import re
import fileinput

#-------------------------------------------------------------------------------

fileName = "input.txt"

f = open(fileName,"r")
lines = f.readlines()
for i in lines:
    character = i.split()
    for n in character:

        if  n != '#':
            print n

        else:
            print "End of File"

```

input.txt

```
A = B = 411
C = ( D = 2 ) * _2
C = D = 2 * _2
F = C - D
E = D * _10
Z = 10 / 3
#

```

now the problem is if i give spaces between the letters/numbers in the input file the program works properly. But if the spaces are removed then the output is like A=B=411
Which i don't want..Can anybody please help me...how to maintain the integrity of the data read from the file...