python read file strip code example
Example 1: stripping /n in a readlines for a pytgon file
alist = [line.rstrip() for line in open('filename.txt')]
Example 2: python read file without newline
# converts read file into a list without newlines
temp = file.read().splitlines()