class Album:
'''Class representing an album with a name, artist, year'''
def __init__(self, input_album, input_artist, input_year):
'''Creates new album with given name, artist and year'''
self.album = input_album
self.artist = input_artist
self.year = input_year
def getAlbum(self):
'''Returns the album'''
return self.album
def getArtist(self):
'''Returns the artist'''
return self.artist
def getYear(self):
'''Returns the year'''
return self.year
def __str__(self):
'''Returns string of Album'''
return str(self.album)+" - "+str(self.artist)+" - "+str(self.year)