It shows a table of movies, shown by their posters. When you click on a poster, its YouTube trailer pops up.
There are two class declarations, Video
and Movie
. The class Movie
is a child of the class Video
. Each movie object is an instance of the class Movie
. The movies.py file is where I have created the instances and called the function which generates the final webpage.
The fresh_tomatoes.py file includes a function called open_movies_page
which takes in as argument a list of movie instances and generates the final page. Run the movies.py program (by calling the open_movies_page
function) to generate the webpage.