Good afternoon,
I need to compare 2 lists and when a certain value in the 'name' field of list 1 does not exist in the 'name' field of list 2 perform some function.
The way I did is comparing index by index and executing if every time the...
I wanted a simple scrip where it counts up to 6 using while or another replay method. and will have a list with 5 flawed and 1 died and he counts up to 6 raffling this list and when he speaks died he wanted her to look like. but in my script it...
I need to do the linear regression calculation, but I read that there is no possibility to use / install scipy on windows. Are there any other libraries similar to scipy for this type of calculation? Or if there is some way to install scipy on w...
I can not do:
The ages and heights of 5 students were noted. Make a Program that determines how many students over 13 have height
less than the average height of these students.
Final Code:
idadeAlunos = [12,13,13,15,16]
altura...
Hello, I would like to make a code that when I type, for example, "product_name", it will check if there is any word with the name that I typed and return a value, example "200 reais". But I have no idea how to start, I'll be grateful if anyone c...
I have a file with the following entries:
Ana
Joao
Pedro
José
....
I need to delete the line with the name Pedro, it would be easy for me to read the whole file, save it in a list, delete Pedro and rewrite the file:
nomes = open('nomes.tx...
I'm creating a function that shuffles and returns the typed word, but I do not know how to use print (if that's the case) to show the result of the function below:
def f():
a = []
x = 0
while x < len(word):
a.appe...
I have two processes going on and I have a class containing a method that modifies a value, as you can see in the code below. The ButtonObject function represents a click, to modify a value. But the question is, why does the change only occur wi...
I would like to remove repeated integers from a list and return a new list.
lista = [1, 2, 3, 3, 3, 4, 5, 6, 6, 7, 8]
The result would have to be this:
[1, 2, 3, 4, 5, 6, 7, 8]