Posts by Glebson Santos • 39 points
5 posts
-
1
votes1
answer20
viewsQ: Why declare the timeout ID outside the callback of the mocking function?
This is a function that prints in the console what I type in the input. I would like to understand why, when I declare the ID of the setTimeout (in that case called time) outside the function, it…
-
-2
votes1
answer31
viewsQ: Add values in the field by pressing the 'enter' key and reset these values with the 'reset' button in Javascript
What do you say? How can I add values in the field by pressing the 'enter' key instead of clicking the 'add' button and how to reset these values within the 'select' button with the 'reset' button…
-
1
votes2
answers205
viewsQ: Store read names in a list and randomly choose one of them
How do I, among the students I type, he draw one within the range? In the code below it does not draw, returns me only the last name: from random import choice for c in range(1, 4): aluno =…
-
0
votes1
answer40
viewsQ: Nested structure giving error
I’m trying to create a script that reads if the person is older or younger. I would like if for example only 1 person is bigger, it writes '1 person' and not '1 people', but my code is giving some…
-
0
votes3
answers46
viewsQ: How to modify a repeat
Follows the code: numero = int(input('Digite um número:')) msg1 = ('Errado') msg2 = ('Tá osso em') while numero != 0: print(msg1) numero = int(input('Digite um número:')) print('Certo') How do I…
pythonasked Glebson Santos 39