Skip to content

Commit c33230a

Browse files
committed
Criado e removido atributo de objetos do tipo Pessoa
1 parent c912d9e commit c33230a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

oo/pessoa.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@ def cumprimentar(self):
1818
print(luciano.idade)
1919
for filho in luciano.filhos:
2020
print(filho.nome)
21+
luciano.sobrenome = 'Ramalho'
22+
del luciano.filhos
23+
print(luciano.__dict__)
24+
print(renzo.__dict__)
2125

2226

0 commit comments

Comments
 (0)