Programming Foundations with Python >> Lessons >> Make Classes: Movie Website >> Defining__init__
Shorten long URL’s with Google’s URL shortener:
goo.gl
This:
import media toy_story = media.Movie("Toy Story", "story of boy who's toys come to life", "http://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg", "https://www.youtube.com/watch?v=vwyZH85NQC4") print(toy_story.storyline)
..could be better with shortened URLs:
import media toy_story = media.Movie("Toy Story", "story of boy who's toys come to life", "goo.gl/v3of4L", "goo.gl/fQpKqz") print(toy_story.storyline)