-4
class Bola:
def __init__(self,cor,circunferencia,material):
self.cor = cor
self.circunferencia = circunferencia
self.material = material
# MOSTRAR COR
def mostrar_cor(self):
return print("A cor e : {}".format(self.cor))
# MOSTRAR CIRCUNFERENCIA
def mostrar_circunferencia(self):
return print("A circunferencia e : {}".format(self.circunferencia))
# MOSTRAR MATERIAL
def mostrar_material(self):
return print("O material e : {}".format(self.material))
# METODOS
# TROCAR COR DA BOLA
def trocar_cor_da_bola(self):
nova_cor = str(input("Digite A nova cor da bola: "))
self.cor = nova_cor
return print("A cor foi alterada para : {}".format(self.cor))
# TROCAR CIRCUNFERENCIA DA BOLA
def trocar_circunferencia_da_bola(self):
nova_circunferencia = str(input("Digite A nova circunferencia da bola: "))
self.circunferencia = nova_circunferencia
return print("A circunferencia Foi alterada para : {}".format(self.circunferencia))
# TROCAR MATERIAL
def trocar_material(self):
novo_material = str(input("Digite o novo Material: "))
self.material = novo_material
return print("O Material foi alterado para : {}".format(self.material))
You can edit the question to include new information. Just press the button
editar
.– Danizavtz
Please provide additional details in your reply. As it is currently written, it is difficult to understand your solution.
–
Use the edit link in your question to add other information. The Post Answer button should only be used to complete answers to the question. - Of Revision
– Andrei Coelho