hwo to remove \n from end of string in python in readlines code example
Example: stripping /n in a readlines for a pytgon file
alist = [line.rstrip() for line in open('filename.txt')]
alist = [line.rstrip() for line in open('filename.txt')]