Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class médico:
- def __init__(self, nome, numero, especialidade):
- self.nome = nome
- self.ninscrição = numero
- self.especialidade = especialidade
- def receituario(self):
- print(f'Nome: {self.nome}\nNúmero de Inscrição: {self.ninscrição}\nEspecialidade: {self.especialidade}')
- def alterarnome(self):
- x = str(input('Deseja alterar o nome? ')).lower().strip()[0]
- if x == 's':
- self.nome = str(input('Digite o nome: ')).title().strip()
Advertisement
Add Comment
Please, Sign In to add comment