Posts by Regis Tossou • 1 point
2 posts
-
-3
votes2
answers840
viewsA: Object-oriented programming exercise in Python
class Quadrado(): def __init__(self, x): self.tamanho_lado = x def mudar_val_lado(self, novo_lado): x = novo_lado self.tamanho_lado = x def retorna_val_lado(self): print(self.tamanho_lado) def…
-
-1
votes2
answers840
viewsQ: Object-oriented programming exercise in Python
I started studying object-oriented programming in Python this week and did an exercise but I don’t know if it’s right. I need someone to take a look at it to point out my mistakes because although…