Python help

FUNCTION: populateRatings ( movies : list, critics : list ) -> table of integers

This function does the following:

  1. Reads in remaining lines of input

until you reach a line that reads "EOF" (standing for End of File)

  1. For each line (string of form: "movie-title,critic-name,rating"),

it places the data into the appropriate cell within the table

Args:

@param movies (list): List holding each movie title that is to be

represented as rows within the table

@param critics (list): List holding each critic name that is to be

represented as columns within the table

Returns:

@return table: A 2-dimensional list (table) holding integers.

The table has one row per movie title and one

column per critic name.

/r/learnprogramming Thread Parent