Posts by FB Code • 23 points
2 posts
-
-1
votes2
answers611
viewsQ: How to overwrite a method
Hello I want to overwrite a method, here is the code of the sheet class: from Aluno import * class Bolsista(Aluno): __bolsa = 0.0 def renovarBolsa(self): print(f"Renovando bolsa de {self._nome}")…
-
2
votes1
answer971
viewsQ: Error "Indexerror: list assignment index out of range" when setting "l[0] ="
I’m having a problem in my class in function __init__() class Lutador(): __nome = "null" __nacionalidade = 'null' __idade = 0 __altura = 0.0 __peso = 0.0 __categoria = 'null' __vitorias = 0…