Posts by Jhonathan Wolff • 61 points
8 posts
-
0
votes1
answer41
viewsA: How to create a class that contains a list of objects of a parent class?
You need to work with inheritance in this your case is easier to create a Group class containing a list of people and adding val class Pessoa: def __init__(self, nome, idade): self.nome = nome…
-
0
votes1
answer84
viewsA: How to work with super accurate Python values?
As the computer has only work with binary operations the decimal values have a certain maximum precision after a certain point the value is arbritario of the nearest value that the binary operation…
-
0
votes1
answer70
viewsA: How to Validate User Input within a . txt file
Make a recursion on each record of the file and compare the email as soon as you find the corresponding email compare the password type and if it is true do something. Pseudo code example: for line…
pythonanswered Jhonathan Wolff 61 -
0
votes1
answer20
viewsA: IMPORT SPECIFIC EVENT - PANDAS
You can filter using the pandas Loc or iloc df = df.loc[['meu_campo'] == 'texto'] this will make that dataframe only have the data referring to the filter that I added For more information on the…
-
0
votes1
answer33
viewsA: Connect a lineEdit to a class method
as its class is with the attribute self it needs to be instantiated before using you can instantiate and call the query methodCodigo() or turn your method into a class method # 1 solução…
-
1
votes1
answer159
viewsA: Python dictionary Alphabetical order and duplicate existing dictionary
Personal I am in doubt on how to write on the screen for the user the values of the dictionary without the bracket and in alphabetical order. You can give Sort in the dictionary keys and then…
-
1
votes1
answer79
viewsA: Python - Brute Force reading TXT file and generating an output with six password variations
You can load row by row instead of loading the entire file and apply the treatment. note that in the snipped below it is not necessary to close the input file why the method with already manages it…
python-3.xanswered Jhonathan Wolff 61 -
1
votes3
answers200
viewsA: How to Merge 3 Select into One
Use Union all to join all your selects into one SELECT COUNT(*) AS QtdTarifados ,0 AS QtdEnviados ,0 AS QtdRespondidos FROM tblLoteTESTE WHERE CodCampanha = 1 AND MONTH(DataAgendada) = 7 AND…