Skip to content
Advertisement

Tag: list

Creat a list of variables with a specific prefix [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 12 months ago. Improve this question I have a series of variables called pic1, pic2, pic3 etc. I want to create a list of all the

Selenium element is not attached to the page document

I am trying to scrape this particular site with Python: https://www.milanofinanza.it/quotazioni/ricerca/listino-completo-2ae?refresh_cens. I need to get all the isin codes and the names. My idea was to get them all in 2 separated lists, to do that I try to get the entire column (by changing the Xpath to tr rather than tr1) and then add it to the list. My

Python for loop to while loop for unique value

This program makes it so if a repeat letter is used twice in a string, it’ll appear only once in the list. In this case, the string “Hello, world!” will appear as [‘H’, ‘e’, ‘l’, ‘o’, ‘w’, ‘r’, ‘d’] My question is, how would I go about using a while loop instead of a for loop to achieve the same

Filter list of dictionaries from a value and get items forward [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 12 months ago. Improve this question I have this list of dictionaries, for example: So how would it be

Divide matrix into submatrix python

The program must accept an integer matrix of size R*C and four integers X, Y, P, Q as the input. The program must divide the matrix into nine submatrices based on the following condition. The program must divide the matrix horizontally after the Xth row and Yth row. Then the program must divide the matrix vertically after the Pth column

Items not being appended properly

I was working on the following code which will take input the scrap which has a few phrases as: Now I want the phrases in scrap which have used the words in prog_list to be appended to TRUE_PROG : I wrote a simple code having loops in it, but it produces an output that I didn’t expect: PROGRAM CODE: If

How to merge all of the output lists into one list [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 12 months ago. Improve this question I was trying the following code snippet for a project of mine: I

Advertisement