Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vou te mandar o codigo. Espero que ajude #167

Open
AndersonMenezesIta opened this issue Jul 7, 2024 · 0 comments
Open

Vou te mandar o codigo. Espero que ajude #167

AndersonMenezesIta opened this issue Jul 7, 2024 · 0 comments

Comments

@AndersonMenezesIta
Copy link

class UsuarioTelefone:
def init(self, nome, numero, plano):
self.__nome = nome
self.__numero = numero
self.__plano = plano

@property
def nome(self):
    return self.__nome

@property
def numero(self):
    return self.__numero

@property
def plano(self):
    return self.__plano

def __str__(self):
    return f"Usuário {self.nome} criado com sucesso."

Entrada:

nome = input()
numero = input()
plano = input()

Crie um novo objeto UsuarioTelefone com os dados fornecidos:

usuario = UsuarioTelefone(nome, numero, plano)

print(usuario)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant