Given this example function:
def writeFile(listLine,fileName):
'''put a list of str-line into a file named fileName'''
with open(fileName,'a',encoding = 'utf-8') as f:
for line in listLine:
f.writelines(line+'\r\n')
return True
Does this return True
statement do anything useful?
What's the difference between with it and without it? What would happen if there were no return function?