Oi Pessoal, boa tarde, estou com uma dúvida aqui, espero que possam me ajudar O código é este: #: c01:SimpleClass.py
class Simple:
def __init__(self, str):
print "Inside the Simple constructor"
self.s = str
# Two methods:
def show(self):
print self.s
def showMsg(self, msg):
print msg + ':',
self.show() # Calling another method
if __name__ == "__main__":
# Create an object:
x = Simple("constructor argument")
x.show()
x.showMsg("A message") Os erros que recebo do interpretador estão na linha 2 "Class Simple" e na linha 15, "x = Simple("constructor argument")" O erro é Simple is not defined Agradeço as respostas Rafael