Build a Musical Instrument Inventory - Step 9

Tell us what’s happening:

Your code so far


# User Editable Region

class MusicalInstrument:
    def __init__(self, name, instrument_type):
        self.name = name
        self.instrument_type = instrument_type

    def play(self):
        print(f"'{self.name}' is fun to play!")

# User Editable Region


instrument_1 = MusicalInstrument('Oboe', 'woodwind')
instrument_2 = MusicalInstrument('Trumpet', 'brass')


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36

Challenge Information:

Build a Musical Instrument Inventory - Step 9

what is wrong with code

Hi @arti.patel09,

The [instrument name] is fun to play!

Are there quotes around the instrument name in the message in the instructions?

Happy coding!