Posts by Programador em formação • 71 points
5 posts
-
-2
votes1
answer22
viewsA: Hide button if label value for X
First you would have to look for a way to link the person to the generated code. Probably a user. I recommend to select and link the current session (it can be in your User object). I could create a…
-
1
votes1
answer1266
viewsQ: How to add elements to the tuple using a function?
def funcao(): int(input('insira um número:')) tupla = (funcao(), funcao(), funcao(), funcao()) print(tupla.count(9)) print(tupla) insira…
-
3
votes1
answer425
viewsQ: How does Python handle static and dynamic variables?
Static variable, is the one where we separate the memory of the computer already defined beforehand (I read this in the book "Basic data structure"). The dynamic variable, on the other hand, is one…
-
0
votes4
answers261
viewsA: Sequencia Fibonacci
I like to reason this way, I hope it helps: 1 - we have 3 positions : predecessor, current and next; 2 - the anticipationr will always receive the current; 3 - the current will always receive the…
-
2
votes3
answers9053
viewsQ: Multiplying terms from the list
I want to print the multiplication of the terms and I would like to know if there is a function capable of doing this for me in the Python language: lista = [] con = 0 while(con<5): n =…
pythonasked Programador em formação 71