Posts by Joao Carlos Agostini • 39 points
4 posts
-
0
votes1
answer37
viewsQ: JS - Div does not move around the screen
This code is a copy of a video that teaches js to beginners. It is practically an exact copy of what I see on the screen, but with me it does not run at all. The only thing the 'ball' does is go up…
-
-1
votes1
answer79
viewsQ: Python - update() failure to merge dictionaries
Hello I searched and found that dictionaryA.update(dictionaryB) is able to join the two dictionaries together. I tested and it actually works. But in the little exercise program below, it does not…
-
1
votes2
answers884
viewsQ: Python - how to create a two-dimensional matrix with for loops
Hello The code below gives the following error message: Traceback (Most recent call last): File "C:/Users/Usuario/Documents/tests python/várias.py", line 12, in mult[i][j] = (i*j) Indexerror: list…
-
0
votes2
answers82
viewsQ: Python - is it possible to use lambda in print with format (f or .format)?
I searched for lambda and print and I didn’t find anything I imagined, I mean, it’s possible to do something like this: mil = num//1000 print(f'O número tem {mil} {lambda milhar if (mil == 1) else…