input: def simulate_song_class():
      """Simulate the Song class with a list of songs. The function should return the list of songs with their titles and artists, 
      and also return the titles with their lengths.
      For example:
      [Song('Lose Yourself', 'Eminem'), Song('Uptown Funk', 'Mark Ronson')] should produce (['Title: Lose Yourself\nArtist: Eminem', 'Title: Uptown Funk\nArtist: Mark Ronson'], {'Lose Yourself': 12, 'Uptown Funk': 11})
      """
      songs = [Song('Lose Yourself', 'Eminem'), Song('Uptown Funk', 'Mark Ronson')]
      titles_and_artists = [str(song) for song in songs]
      titles_and_lengths = {song.title: song.length() for song in songs}
      return titles_and_artists, titles_and_lengths
output:     class Song:
          def __init__(self, title, artist):
              self.title = title
              self.artist = artist
          
          def __str__(self):
              return f'Title: {self.title}\nArtist: {self.artist}'
          
          def length(self):
              return len(self.title)