hi i am trying the contents of a txt file into a dictionary there are 5 txt files which are to large to manually type up so i need to know what code i can i use
the txt files are below
the program i am trying to create is a timetable that uses a cgi form to access a python script then the python script takes the inputted name from the cgi form and has to find it in a dictionary it then must show the contents of the dictionary in a HTML table
the contents of the html table will look something like this except with every L (line) it must have the subject and teacher
Week A Monday Tuesday Wednesday Thursday Friday
Period 1 L2 L3 L5 L4 L3
Period 2 L7 L2 L7 L1 LDI
Recess
Period 3 L5 L4 L3 L5 L1
Period 4 L1 L6 L6 L6 L2
Lunch
Period 5 L8 L7 L4 Meeting L8
any help will be appreciated
thanks in advance
the txt files are below
the program i am trying to create is a timetable that uses a cgi form to access a python script then the python script takes the inputted name from the cgi form and has to find it in a dictionary it then must show the contents of the dictionary in a HTML table
the contents of the html table will look something like this except with every L (line) it must have the subject and teacher
Week A Monday Tuesday Wednesday Thursday Friday
Period 1 L2 L3 L5 L4 L3
Period 2 L7 L2 L7 L1 LDI
Recess
Period 3 L5 L4 L3 L5 L1
Period 4 L1 L6 L6 L6 L2
Lunch
Period 5 L8 L7 L4 Meeting L8
any help will be appreciated
thanks in advance
Comment