#Given a text file containing the availability of food items, 
#write a program that reads the information from the text file and 
#outputs the available food items. 
#The program first reads the name of the text file from the user. 
#The program then reads the text file, stores the information into four separate lists,
#and outputs the available food items in the following format: 
#name (category) -- description

#Assume the text file contains
#the category, name, description, 
#and availability of at least one food item, separated by a tab character ('\t').

text_file = input()

with open(text_file, 'r') as file: 
    rows [line.strip().split('\t') for line in file]

for category, name, description, status in rows: 
    if status.strip() == "Available": 
        print(f"{name} ({category}) -- {description}")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: