Skip to content

Commit b6923d2

Browse files
committed
Criado o metodo cumprimentar(self)
1 parent 554bed2 commit b6923d2

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
@@ -1,3 +1,8 @@
11
# Criando a Classe Pessoa
22
class Pessoa:
3-
pass
3+
def cumprimentar(self):
4+
return 'Olá'
5+
6+
if __name__ == '__main__':
7+
p = Pessoa()
8+
print(p.cumprimentar())

0 commit comments

Comments
 (0)