Guest User

entertaiment_centre.py

a guest
Dec 15th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.76 KB | None | 0 0
  1. import media
  2. import fresh_tomatoes
  3.  
  4. # Create instances of class "media"
  5.  
  6. movie_1 = media.Movie("X-Men Apocalypse",
  7.                       "Some description about it.",
  8.                       "ABC, DEF, GHI",
  9.                       "http://goo.gl/yRBapH",
  10.                       "https://www.youtube.com/watch?v=COvnHv42T-A")
  11.  
  12. movie_2 = media.Movie("Captain America",
  13.                       "Some description about it.",
  14.                       "ABC, DEF, GHI",
  15.                       "http://goo.gl/B3C5OE",
  16.                       "https://www.youtube.com/watch?v=1L3c17AmCZw")
  17.  
  18. movie_3 = media.Movie("Batman v/s Superman",
  19.                       "Some description about it!",
  20.                       "ABC, DEF, GHI",
  21.                       "http://goo.gl/lLST2G",
  22.                       "https://www.youtube.com/watch?v=0WWzgGyAH6Y")
  23.  
  24. movie_4 = media.Movie("Cars 2",
  25.                       "Some description about it!",
  26.                       "ABC, DEF, GHI",
  27.                       "http://goo.gl/FNf2Pp",
  28.                       "https://www.youtube.com/watch?v=lg5hj2c5Nkk")
  29.  
  30. movie_5 = media.Movie("Perfume",
  31.                       "Some description about it!",
  32.                       "ABC, DEF, GHI",
  33.                       "http://goo.gl/yCP7JI",
  34.                       "https://www.youtube.com/watch?v=zutiIw_2e2g")
  35.  
  36. movie_6 = media.Movie("The Internship",
  37.                       "Some description about the movie!",
  38.                       "ABC, DEF, GHI",
  39.                       "http://goo.gl/NVFWPN",
  40.                       "https://www.youtube.com/watch?v=cdnoqCViqUo")
  41.  
  42. # Creating an array of movies
  43. movies = [movie_1, movie_2, movie_3, movie_4, movie_5, movie_6]
  44.  
  45. # Invoke the method from fresh_tomatoes.py to create a HTML file
  46. fresh_tomatoes.open_movies_page(movies)
Advertisement
Add Comment
Please, Sign In to add comment