diff options
Diffstat (limited to 'unbiasedObjects.py')
-rw-r--r-- | unbiasedObjects.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unbiasedObjects.py b/unbiasedObjects.py index 2233b0c..3affbe6 100644 --- a/unbiasedObjects.py +++ b/unbiasedObjects.py @@ -4,16 +4,18 @@ class Article(): img=''
description=''
source=''
+ author=''
- def __init__(self, title, url, img, description, source):
+ def __init__(self, title, url, img, description, source, author):
self.title=title
self.url=url
self.img=img
self.description=description
self.source=source
+ self.author=author
def __str__(self):
- return '-----------\n'+self.title+'\n'+self.source+'\n'+self.description+'\n'+self.url+'\n'+self.img+'\n'+'-----------'
+ return '-----------\n'+self.title+'\n'+self.author+'\n'+self.source+'\n'+self.description+'\n'+self.url+'\n'+self.img+'\n'+'-----------'
class NewsSource2():
|