Posts by Pedro Almeida • 61 points
3 posts
-
0
votes1
answer721
viewsQ: Algorithm to validate CNH
Hello, I need to validate CNH in Ruby, but I can’t find any code and no reference to the validation rule. Does anyone have any of this information? thank you
-
3
votes1
answer88
viewsA: List element Zera after loop for
The error was syntax missing a TAB. mediasCa = [] for k in range(0,itera): mediasCa.append(0) for j in range(0,99): aux = [] a = quant for i in range(0,itera): bola = randint(1,quant) if bola <…
pythonanswered Pedro Almeida 61 -
3
votes1
answer88
viewsQ: List element Zera after loop for
I created an array and filled it with 100 [0] (because I don’t know a better way to do it) and after that I wanted to change these values using a loop for within another loop for. But what happens…
pythonasked Pedro Almeida 61