Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Arbore():
- def __init__(self, trasaturi, nume, prenume, gradRudenie):
- self.trasaturi = trasaturi
- self.nume = nume
- self.prenume = prenume
- self.gradRudenie = gradRudenie
- def afisareDate(self):
- print(self.trasaturi + " - " + self.gradRudenie + " - " + self.nume +" " + self.prenume)
- trasaturi = []
- trasaturi.append(Arbore("Sarguninciosa", "Baloi", " Georgiana", "mama"))
- trasaturi.append(Arbore("Destept", "Baloi", " Ioan", "tata"))
- trasaturi.append(Arbore("Frumusete, creativitate", "Baloi", "Georgeta", "Bunica"))
- trasaturi.append(Arbore("Indelenticire", "Baloi", " Ion", "Bunic"))
- trasaturi.append(Arbore("Ambitia", "Baloi", "Ioana", "Bunica"))
- trasaturi.append(Arbore("Talentul la desenat", "Baloi", "Ana", "Strabunica"))
- trasaturi.append(Arbore("Nu mostenesc nici-o trasatura de la", "Baloi", " Ioan", "Strabunic"))
- for tras in trasaturi:
- tras.afisareDate();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement