Below is the code to a part of a program. This part prints the line the user enters (same as idnum). It retrieves the data from all the 6 files fine, however when it prints them there is line separating each piece of data. What do I need to do to make the program print the data without line spacing.
1 smith
1 john
1 02/01/1234
1 4 pigeon street
1 123456765432234432
1 male
idnum= int(input("Enter id number: "))
def display():
line = open("Surname", "r").readlines()[idnum-1]
print (line)
line = open("Forename", "r").readlines()[idnum-1]
print (line)
line = open("Date of birth", "r").readlines()[idnum-1]
print (line)
line = open("Home address", "r").readlines()[idnum-1]
print (line)
line = open("Home phone number", "r").readlines()[idnum-1]
print (line)
line = open("Gender", "r").readlines()[idnum-1]
print (line)
import os.path
if os.path.exists("Surname"):
display()
else:
print("No data exists.")