Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save raonyguimaraes/9b4f13fd452eb8a728dd762cdac2a561 to your computer and use it in GitHub Desktop.

Select an option

Save raonyguimaraes/9b4f13fd452eb8a728dd762cdac2a561 to your computer and use it in GitHub Desktop.
#arquivo media.py
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
self.title = movie_title
self.storyline = movie_storyline
self.poster_image_url = poster_image
self.trailer_youtube_url = trailer_youtube
#arquivo entertainment_center.py
import media
toy_story = media.Movie("Toy Story",
"A story of a boy and his toys that come to life",
"https://pt.wikipedia.org/wiki/Toy_Story#/media/File:Movie_poster_toy_story.jpg",
"https://www.youtube.com/")
print(toy_story.storyline)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment