TutorialDivingIn04: section4.py

File section4.py, 426 bytes (added by ged, 5 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")
7alien = Movie(title="Alien", year=1979)
8brunner = Movie(title="Blade Runner", year=1982)
9swars = Movie(title="Star Wars", year=1977)
10
11rscott.movies.append(brunner) 
12rscott.movies.append(alien)
13swars.director = glucas