'Format text file into columns

I'm trying to write a library management inventory system. This program has a few different options for a user to select, one of them is to display inventory. The inventory is stored in a text file. My problem is that I can display the text file but I'm not sure how to format the information into something readable i.e book name, author, stock, loaned, available etc.. instead the information is separate by semi colons. Portion of the code below.

# Open Book.txt file and place into inventory function 

with open('Book.txt', 'r') as f:
    inventory = f.read().split(';')
    

#Menu
while True:
    print("Westlands Book Inventory Management Subsystem")
    print(" 1. Display inventory")
    print(" 2. Add a book")
    print(" 3. Remove a book")
    print(" 4. Export inventory")
    print(" 5. Quit IMS")
    user_input = input("Select an option from the menu>") 


####Display inventory
    if user_input == '1':
       # print(f'{"name":40} {"Author":18} {"ISBN":int} {"CallNumber":int} {"Stock":int] {"Loaned":} {"Available":})
        print(inventory)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source