# converts read file into a list without newlines temp = file.read().splitlines()
temp = file.read().splitlines()