00:01
Hello students, here is the python code that provides the information from a text file containing the availability of the food items and the output the available food items in the selected format.
00:13
Whereas here the input file this the user has prompted to enter the name of the text file that is example food .txt that contains the information about the food items.
00:24
Then you initialize the list as the four empty lists are initialized to store the following information from the text file as the categories, names, description and the available.
00:36
So the category of the food items name, the names of the food items, description, description about the food items and the availability status of the food item whether it is an available or not.
00:48
Then read and store the data.
00:50
So the code here attempts to open the specified file text and reads it contains line by line.
00:57
It splits each line into the four part as the category, name, description and the availability...