Hello,
I am trying to compare two lists of string in python. Some of the strings are numbers however I don't want to use it as number, only for string comparison.
I read the string from a file and put them on a list like this:
def main():
inputFileName = 'BateCarteira.csv'
inputFile = open(inputFileName, "r")
bankNumbers = []
for line in inputFile:
values = line[0:len(line)-1].split(';');
if (len(values[0]) > 3):
bankNumbers.append(''+values[0])
However, when I try to print the number, it prints like:
1,20091E+11
The code for the printing:
print 'not in the list: ' + bankNumber
outputFile.write(bankNumber + '-')
What can I do so python never casts the string to an int?
sorry for my english :D