I am pretty new to Python world and trying to learn it.
This is what I am trying to achieve: I want to create a Car class, its constructor checks for the input to se
You don't define a variable, and you use init and self. Like this:
class Car(Object): def __init__(self,input): self.carName = input def showName(self): print self.carName a = Car("bmw") a.showName()