I'm trying to print two separate indexes from two separate tuples on the same line. but when I print using f-strings it puts the second index I print on a new line.
Can't seem to figure it out no matter what I try it always prints on a new line the surname.
surnames = tuple(open("Surnames.txt", "r"))
first_names_male = tuple(open("Male_names.txt", "r"))
first_names_female = tuple(open("Female_names.txt", "r"))
print(f"{first_names_male[0]} {surnames[0]}")
Should print out "David Smith" all on one line
Instead, it shows David on the first line then on the next line has a space and then Smith