My goal is to print out the index of makeList on to another file. I have check my start and end values, which came out correct. However, my outputFile is totally off because it only print one character on that file.
def printOutput(start, end, makeList):
if start == end == None:
return
else:
while start <= end:
print start
print end
outputFile = open('out'+uniprotID+'.txt','w')#file for result output
inRange = makeList[start]
start += 1
outputFile.write(inRange)