Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67a57b1

Browse files
committed
Criada o método Cumprimentar
1 parent 04b3b53 commit 67a57b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

oo/pessoa.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
class Pessoa:
2-
pass
2+
def cumprimentar(self):
3+
return f'Olá {id(self)}'
4+
5+
if __name__ == '__main__':
6+
p = Pessoa()
7+
print(id(p))

0 commit comments

Comments
 (0)