I write this code in python:
class Jam():
def __init__(self,a,b):
self.a=a
self.b=b
def majmoo(self):
return self.a+ self.b
numbers= Jam(10,55)
print(numbers.majmoo())
But it doesn't run and give this error:
NameError: name 'Jam' is not defined
I don't know why it gives this error I defined Jam() in the first line but It says it is not defined. How should I fix this?