Skip to content

Commit c7027a8

Browse files
committed
Criado e removido atributo dinâmico sobrenome
1 parent f52c670 commit c7027a8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

oo/pessoa.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ def cumprimentar(self):
1717
print(luciano.nome)
1818
print(luciano.idade)
1919
for filho in luciano.filhos:
20-
print(filho.nome)
20+
print(filho.nome)
21+
luciano.sobrenome = 'limberger'
22+
print(luciano.sobrenome)
23+
del luciano.sobrenome
24+
print(luciano.__dict__)
25+
print(renzo.__dict__)

0 commit comments

Comments
 (0)