table named popularity. The fields in the table are as follows:
PersonNumber INTEGER Category VARCHAR(25) Value VARCHAR(60)
I need to write a Python function named data_entry that takes as its parameter a list of strings which represent categories from the category names listed above. For each category, a text file of the same name has been provided e.g. for the category named 'movies', the file will be named 'movies.txt'. The function is to work its way through the list, entering the data from each successive text file into the popularity table created above.
Text file strings are separated by a TAB eg:
1 I Robot 1 Neon Genesis Evangelion: The End of Evangelion