8. Modificar variables miembro


#1

This is my code:

class Auto(object):
	condicion = "nuevo"
	def __init__(self, modelo, color, kpl):
		self.modelo = modelo
		self.color = color
		self.kpl = kpl
	def verAuto(self):
	    print "Este es un %s %s que alcanza %s kpl." % (self.modelo, self.color, str(self.kpl))
	def manejarAuto(self):
        self.condicion = "usado"
miAuto = Auto("Clio", "gris", 16)
print miAuto.condicion
miAuto.manejarAuto()
print miAuto.condicion

Error Message:
File "python", line 10
self.condicion = "usado"
^
IndentationError: expected an indented block


Thanks


#2

Hi in the def manejarAuto(self) you should indent this line

self.condicion = "usado"

#3

Thank you very Much!!