when I run something similar to this the outputs are on separate lines but I would like them to appear on the same line
f = open("demofile.txt", "r")
print(f.readline())
print(f.readline())
and the output is
cat
dog
but the output that i want is
cat dog