title: AttributeError: object has no attribute print
body: <p>In Microsoft Visual Studio, I am getting the error "Artist object has no attribute "object". What am I doing wrong? Here is my python code:</p>
  
  <pre><code>class Artist:
      def __init__(self, name):
          self.name = name
          self.albums = []
  
      def add_album(self, album):
          self.albums.append(album)
  
      def printLists(self):
          print('Songs by {}'.format(self.name))
          for alb in self.name:
              alb.printFunct('Songs by {}'.format(self.name))
  
  class Album:
      #define what is in the album
      def __init__(self, albumTitle, artist):
          self.songs = []
          self.albumTitle = albumTitle
          artist.add_album(self)
          self.cls = albumTitle     
  
          artist.add_album(self)
  
      def addSongs(self, songTitle):
          self.songs.append(songTitle)
  
      def printFunct(self):
              for song in self.songs:
                  print('{}({})'.format(song.nameSong, self.albumTitle))
  
  class Song:
  
      def __init__(self, title, album):
          self.title = title        
          self.album = album
  
          album.addSongs(self)
  
  class Playlist:
      def __init__(self, name):
          self.name = name
          self.songs = []
  
      def addSongs(self, song):
          self.songs.append(song)
  
      def printSongs(self):
          print(self.name)
          for song in self.songs:
              print('{}'.format(song.title))
  
  hueyLewis = Artist( "Huey Lewis and the News" )
  hallAndOats = Artist( "Hall and Oates" )
  toto = Artist( "Toto" )
  bigBamBoom = Album( "Big Bam Boom", hallAndOats )
  sports = Album( "Sports", hueyLewis )
  theSeventhOne = Album( "The Seventh One", toto )
  four = Album( "IV", toto )
  
  s1 = Song( "If This is it", sports )
  s2 = Song( "Bad is Bad", sports )
  s3 = Song( "Out of Touch", bigBamBoom )
  s4 = Song( "Did it in a minute ", bigBamBoom )
  s5 = Song( "Pamela", theSeventhOne )
  s6 = Song( "Africa", four )
  
  
  myAwesomePlaylist = Playlist( "My Awesome Playlist " )
  myAwesomePlaylist.addSongs( s1 )
  myAwesomePlaylist.addSongs( s2 )
  myAwesomePlaylist.addSongs( s3 )
  myAwesomePlaylist.addSongs( s4 )
  myAwesomePlaylist.addSongs( s5 )
  myAwesomePlaylist.addSongs( s6 )
  hallAndOats.print('Songs by {}'.format(self.name))
  hueyLewis.print('Songs by {}'.format(self.name))
  toto.print('Songs by {}'.format(self.name))
  myAwesomePlaylist.print()
  </code></pre>
  
  <p>The output is supposed to print out the artist and the song of the artist etc. </p>