Posts by Luan • 372 points
7 posts
-
6
votes1
answer241
viewsA: Exercise of programming logic
Hey there, Rafael, hey! To avoid any doubt regarding the subject as a whole I will address from what is the Fibonacci sequence to the functioning of recursive functions and the function you…
-
1
votes1
answer252
viewsQ: How to change the attribute of an element in javascript?
function changedisplay() { var x = document.getElementsByTagName('li'); if (x.style.display == 'none') { x.style.display = 'block'; } else { x.style.display = 'none'; } } <!DOCTYPE html>…
javascriptasked Luan 372 -
0
votes2
answers46
viewsQ: My page does not fully populate the mobile window. Why?
Even with the width 100% in the structure tags when I do the mobile test the page does not fully fill in: Why does this happen? * {margin: 0 auto; padding: 0 auto;} /* Por a largura se repetir…
-
2
votes2
answers118
viewsA: How do you make this code more readable for someone who doesn’t know anything about programming?
I know two ways: Flowcharts and pseudocode 1.Flowcharts These are graphical representations of algorithms, this simplifies understanding and makes your program much more transparent, even if you may…
-
6
votes2
answers583
viewsQ: A recursive function can replace while and for?
If so, how could I, for example, create a recursive function equivalent to the code below? lista = list(range(1000)) for i in lista: print(i)
-
5
votes1
answer258
viewsQ: What is Lambda calculus?
I heard about it once, but I don’t understand its relationship to programming. Where I could apply this knowledge in development?
mathematicsasked Luan 372 -
1
votes2
answers172
viewsA: I would like to know how to write >>> print("Size = %4.2f cm" % Size) and what does %4.2f mean
This is called formatting, this means that you are telling python that the variable output formatting Tamanho that will be displayed in the function print() have a maximum of 4 boxes before the…