Sep-04-2019, 01:29 PM
Okay this is the first time I've created a Python class and I'm running into a problem. The debugger says NameError: Instrument is not defined.
I don't see the problem. Here is my code:
I don't see the problem. Here is my code:
class Instrument:
def __init__ (self):
self.type = "Guitar"
def main():
instrument = Instrument()
print("My instrument is", instrument)
main()
