TutorialDivingIn04: section6.py

File section6.py, 501 bytes (added by ged, 6 years ago)
Line 
1# you don't need to copy-paste this line, it's only useful when using the data
2# as "from section6 import *"
3from model import *
4
5scifi = Genre(name="Science-Fiction")
6rscott = Director(name="Ridley Scott")
7glucas = Director(name="George Lucas")
8alien = Movie(title="Alien", year=1979, director=rscott, genres=[scifi, Genre(name="Horror")])
9brunner = Movie(title="Blade Runner", year=1982, director=rscott, genres=[scifi])
10swars = Movie(title="Star Wars", year=1977, director=glucas, genres=[scifi])