Posts by Anderson S. Taborga • 23 points
3 posts
-
0
votes2
answers37
viewsA: Return a list of all strings in the file containing the searched string
I managed to solve it this way, so my tests passed v: def buscar(self, string): lista = [] texto = self.arquivo.readlines() for linha in texto: print(linha) if string in linha: lista.append(string)…
python-3.xanswered Anderson S. Taborga 23 -
0
votes2
answers37
viewsQ: Return a list of all strings in the file containing the searched string
I am trying to make a method that scans a list (my list comes from an external file that uses readlines() to assemble a list of strings) and compares it to a string passed by parameter. The feedback…
python-3.xasked Anderson S. Taborga 23 -
2
votes1
answer156
viewsQ: Scrolltop does not work when I use the Body element, but HTML
I did not find an answer or in the jQuery documentation. Because when I use element "body" for Animate with the scrollTop property I want to animate does not work. Follows my code function…