Thank you so much to everyone who helped!! The '==' answer and adding the import webbrowser at the beginning made the code work! This is how it turned out
`
import webbrowser
class Albums:
def __init__(self, name, artist, genre, release, spotify):
    self.name = name
    self.artist = artist
    self.genre = genre
    self.release = release
    self.spotify = spotify
    
def album_desc(self):
    # other way return'The album ' + "{}".format(self.name) + ' was made by ' + "{}".format(self.artist)
    return('The album ' + self.name + ' made by ' + self.artist + ', is a(n) ' + self.genre + ' album released in ' + "{}".format(self.release) + ' with over ' + "{}".format(self.spotify) + ' spotify listeners!')
def album_link(self):
    print('You can check them out here!')
    x = str(raw_input("yes or no: "))
    if x == 'no':
        print('Ok :)! Thank you for checking it out')
    else:
        x == 'yes'
        webbrowser.open('http://themuffinmanbops.carrd.com', new=2)
`