Posts by BRUNO FLAKS • 11 points
4 posts
-
1
votes1
answer307
viewsQ: Return in python 3
I am creating a function in python3 and a question arose about the use of Return, when we call him in the code he must terminate the function immediately? In the code below this is not working, even…
-
0
votes0
answers76
viewsQ: Access from a dictionary in flask via POST
How could I access a dictionary element using POST in flask? I have lists to simulate a comic and through the POST, I would like to try to access them. Function code:…
-
0
votes0
answers37
viewsQ: Recursion in python 3
def dobra(lista, l_dobro = []): if lista == []: return else: dobro = lista[0] * 2 l_dobro.append(dobro) dobra(lista[1:], l_dobro) lista = l_dobro return lista I’m trying to do this function using…
python-3.xasked BRUNO FLAKS 11 -
0
votes0
answers20
viewsQ: Requests in flask for fields with the same name
<div> {% if filmes|length > 0 %} {% for f in filmes %} <form action="/pesquisa_filmes_id", method="POST"> <input type="hidden" id="id_filme", name="id_filme" ,value="{{f}}">…