SHARE
TWEET

Untitled

a guest Jul 17th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Persona():
  2.     def __init__(self, edad, direccion):
  3.         self.edad=edad
  4.         self.direccion=direccion
  5.     def estado(self):
  6.         print("Edad: ", self.edad, "  Direccion= ", self.direccion)
  7. i="no"
  8. while i=="no":
  9.     p1=input("INTRODUZCA NOMBRE: ") #i tried naming Abelino. Doesn´t work
  10.     e1=input("INTRODUZCA EDAD: ")
  11.     d1=input("INTRODUZCA DIRECCIÓN: ")
  12.     p1=Persona(e1,d1)
  13.     p1.estado()
  14.     i=input("")
  15. print(Abelino.estado)####
  16. #print("OTHER NAMES.ESTADO")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top