I'm creating a program for a game that displays fixtures depending on the user input. Even though I have done this, when it displays the fixture it is just in one line. This causes it looks a bit messy and there's no way for users to know what each value means. What I want to do is display this in a table with the headings 'Fixture Number', 'Date Played', 'Player 1', 'Player Two', 'Was the fixture played?' and 'Winning Player'. A sample of the file is:
1,05/03/17,13:00,DarrenL,Philippa93,Y,DarrenL
2,06/03/17,13:00,TommyBoy,Paul4,Y,Paul4
3,07/03/17,13:00,Flip,Han68,Y,Han68
The code I have right now is:
fixFind = int(input("Please enter a fixture number: "))
if 189 >= fixFind >= 0:
f = open("fixtures.txt", "r").readlines()
lines = f[fixFind]
print("""
Fixture: """ + lines)