Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Persona():
- def __init__(self, edad, direccion):
- self.edad=edad
- self.direccion=direccion
- def estado(self):
- print("Edad: ", self.edad, " Direccion= ", self.direccion)
- i="no"
- while i=="no":
- p1=input("INTRODUZCA NOMBRE: ") #i tried naming Abelino. Doesn´t work
- e1=input("INTRODUZCA EDAD: ")
- d1=input("INTRODUZCA DIRECCIÓN: ")
- p1=Persona(e1,d1)
- p1.estado()
- i=input("")
- print(Abelino.estado)####
- #print("OTHER NAMES.ESTADO")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement