Posts by Inês Barata Feio Borges • 313 points
20 posts
-
-1
votes1
answer18
viewsQ: My list of all is erased when I try to erase only a whole
This is my list of all: And this is what happens when I try to erase one whole: I tried to see what the whole returned and should return an object but instead returns it: I have this mistake too:…
reactasked Inês Barata Feio Borges 313 -
-4
votes1
answer216
viewsQ: Property 'todos' is Missing in type '{ setTodos: (todos: Itodo[]) => void; key: string; text: string; }' but required in type 'Props'
These are my mistakes: Property 'todos' is Missing in type '{ setTodos: (todos: Itodo[]) => void; key: string; text: string; }' but required in type 'Props'. Property 'id' does not exist on type…
-
-1
votes1
answer243
viewsQ: Property 'filter' does not exist on type 'Setstateaction<Never[]>'
I’m having trouble getting this little piece of code to work: Here is my code: import React, {SetStateAction} from 'react'; import {BsCheck, BsTrashFill} from 'react-icons/bs'; type Props = { text:…
-
-1
votes1
answer170
viewsQ: setInputText is not Assignable to type 'Intrinsicattributes & { Children?: Reactnode; }'
I have this variable that returns an error: Type '{ setInputText: Dispatch<Setstateaction>; }' is not Assignable to type 'Intrinsicattributes & { Children?: Reactnode; }'. Property…
typescriptasked Inês Barata Feio Borges 313 -
0
votes4
answers208
viewsQ: How to get an index() of an array with the same element multiple times?
The idea is to sort the letters to write an HTML5 element in this case the "tfoot". But when I change the second letter t by the does not change me right. I know why. is because the index I picked…
javascriptasked Inês Barata Feio Borges 313 -
4
votes1
answer40
viewsQ: How to make a Sort of a converted Nodelist to array?
I am trying to sort the array by the style property order. This is my attempt: var interval = setInterval(() => { var letterDivs = gameBox.getElementsByClassName("wordBox")[0].childNodes;…
-
2
votes2
answers70
viewsQ: Array method not available? "Sort is not a Function" error when applying it to Nodelist
I have the following code: var letterDivs = gameBox.getElementsByClassName("wordBox")[0].childNodes; console.log(letterDivs); //=> NodeList[...] // Dá erro: `sort is not a function`:…
javascriptasked Inês Barata Feio Borges 313 -
0
votes0
answers35
viewsQ: Arrays error - how to store a div element
The goal is to exchange the letter r for and to form the pre HTML element. I’ve had experiments with my code where I have an array of Divs where each div stores a letter. To swap the elements just…
-
2
votes1
answer245
viewsQ: How do I resolve the problem Uncaught Typeerror: Cannot read Property 'Cells' of Undefined in this context?
Here’s the code that says you’re Undefined: function verifica_pos(row, col){ //Move para Sul if (document.getElementById("table").rows[row - 3].cells[col].innerHTML == count_num - 1) { return true;…
-
0
votes1
answer34
viewsQ: My setInterval function is not working as intended
Here’s the code: //Função para contar os segudos function conta_seg(){ sec++; if (sec < 10 && min == 0) { document.getElementById("conta-tempo").innerHTML = "00:0" + sec; }else if (sec…
-
1
votes1
answer164
viewsQ: Python Shell cannot run a module with more than one while loop
I have serious problems in being able to build a functional module in which I have to use more than 1 while loop, because the program stops running. Especially when I use modules like pygame and…
python-3.xasked Inês Barata Feio Borges 313 -
2
votes1
answer1161
viewsQ: Typeerror: start() Missing 1 required positional argument: 'self' when trying to use the Chronometer module
I installed the Chronometer 1.0 module for python 3.4: Chronometer module I tried to use the start() attribute of the Chronometer method, but gives an error: requires a self argument'…
-
2
votes1
answer379
viewsQ: Vertical crossword
Problem: Write a function called find_word_vertical that accepts a list of 2 character dimensions and a string as input arguments. This function searches the columns of the two-dimensional list to…
pythonasked Inês Barata Feio Borges 313 -
1
votes2
answers799
viewsQ: Typeerror - 'int' Object has no attribute '__getitem__' when iterating over list
Problem: Write a function that accepts a list of integers and returns a list that is the drawn (ascending) version of the original list.(Original list should not be modified). You cannot use the…
-
2
votes2
answers1748
viewsQ: Python 3.5.0 ::: Delete a Label in Tkinter
I have a code that allows me to play to stone-paper-scissors. Here’s the Tkinter window: The result does not appear every time I play, because the label of this text does not disappear or delete the…
-
5
votes1
answer2733
viewsQ: Calculating a magic square
I’m trying to make a magic square: A magic square is one divided into rows and columns, with a number in each position and in which the sum of the rows, columns and diagonals is the same. Example…
-
0
votes1
answer230
viewsQ: Difference between tuple and set
I’m working with python and I was wondering what would be the difference between a set(set()) and a tuple(tuple()). I know that both are delimited with '()'. But I tried to assign a set attribute to…
-
1
votes1
answer478
viewsA: Primes Numbers Using Python Threads
I think the individual wants to run two features at the same time. That is, counting all numbers that are primes at 60 s. While the program counts primes from 2 to x, it also counts the limited time…
pythonanswered Inês Barata Feio Borges 313 -
5
votes2
answers23393
viewsQ: How to install numpy and other modules?
I need help installing numpy. I tried to install pygame using Pip but it didn’t work and I was confused on how to install modules or Packages. Use python 3.5.0 in Windows 10 pro
-
3
votes3
answers10640
viewsQ: Python 3.5.0 ::: Install pygame
I tried to install pygame in python IDLE using Pip but it didn’t work, however I found a download that installed me a folder with pygame ready to install on my local drive. When I installed pygame…
python-3.xasked Inês Barata Feio Borges 313