TutorialDivingIn05: alltogether.py

File alltogether.py, 0.7 kB (added by ged, 4 years ago)
Line 
1# you don't need to copy-paste this line, it's only useful when using the data
2# as "from section4 import *"
3from model import *
4
5rscott = Director(name="Ridley Scott")
6glucas = Director(name="George Lucas")
7
8hford = Actor(name="Harrison Ford")
9mhamill = Actor(name="Mark Hamill")
10sweaver = Actor(name="Sigourney Weaver")
11
12scifi = Genre(name="Science-Fiction")
13horror = Genre(name="Horror")
14
15alien = Movie(title="Alien", year=1979, director=rscott, 
16              genres=[scifi, horror], actors=[sweaver])
17brunner = Movie(title="Blade Runner", year=1982, director=rscott, 
18                genres=[scifi], actors=[hford])
19swars = Movie(title="Star Wars", year=1977, director=glucas, 
20              genres=[scifi], actors=[mhamill, hford])