Posts by Alexandre Pedrecal • 85 points
5 posts
-
-1
votes1
answer45
viewsQ: Seg Fault Core Dumped
I’m having this error in the code and I can’t find the problem, can anyone point out to me what I’m doing wrong? What the code does: I get row and column of matrix A, after matrix B, check if they…
casked Alexandre Pedrecal 85 -
2
votes1
answer1023
viewsA: How to print an element from a list each time a given method is called?
So I added the Dice to a new list, the fix was: class MotorDoJogoSP(object): import operator def MandaExp(self, dif): Dificultador.Sort = Dicio[dif] expr = Dificultador().Sort() explist =…
-
1
votes1
answer1023
viewsQ: How to print an element from a list each time a given method is called?
I’m trying to make a game of mathematical expressions in python, but I need my Mandaexp method to return an expression every time it’s called. In this method I have a list called explist, where…
-
1
votes1
answer2870
viewsQ: Print a list of objects as string in Python
I am making a program in python(2,7) where I take texts from a file,and storing as objects in a list, I would like to print the list but only returns the addresses, I am learning to program in…
-
4
votes2
answers3574
viewsQ: Abstract Python class, how to choose implementation
I’m learning python and trying to make a program where I have an abstract class and two subclasses that implement such. I need to make another class that will choose which implinking to use…