TutorialDivingIn: section4.py

File section4.py, 430 bytes (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=u"Ridley Scott")
6glucas = Director(name=u"George Lucas")
7alien = Movie(title=u"Alien", year=1979)
8brunner = Movie(title=u"Blade Runner", year=1982)
9swars = Movie(title=u"Star Wars", year=1977)
10
11rscott.movies.append(brunner)
12rscott.movies.append(alien)
13swars.director = glucas