I have written these lines in a file
AA
BB
CC
With the following python code
f = open("foo.txt",'r')
for line in f:
print (line)
I see that there is a newline between each line that is reads from
AA
BB
CC
# terminal prompt
How can I remove those new lines?