I have a map as follows val parentMap= mutableMapOf<String,String>() parentMap["key1"]="value1" parentMap["key2"]="value2" parentMap["key3"]
I have this number of list from the following dom, There are total 10 elements. I want to store the first 5 elements from the list in a variable. How can i do i
I need your help with the next problem, i need that a python recieve an string "EEEEDDSGES" and the output would by the sum of charactes that repeat in line, E
I have a df made of values from a dictionary. I can get rid of [], ',' and split it all in different cols (one col per number). But can't make the transfer to f
my_list = [0] * 3 my_list[0] = 1 outputs to [1, 0, 0] my_2ndlist = [[0] * 3] * 3 my_2ndlist[1][1] = 5 outputs to [[0, 5, 0], [0, 5, 0], [0,
I am looking to compare two instances of the same class, but only the items for which both are not None. for instance, I will have a Bolt class, and one instanc
I am trying to put list values into entry widgets, keep getting brackets and quotes. lista = ['abc', 'def', 'ghi'] # These are normally strings, but can be inte
I have a list in a list, and I am trying to delete the third number of each sublist, but every time I am getting an error TypeError: list indices must be intege
I have a list in a list, and I am trying to delete the third number of each sublist, but every time I am getting an error TypeError: list indices must be intege
import re othello_full = open('C:/Users/.../Othello.txt', encoding="mbcs").read() split_dialogue = othello_full.split("\n\n") dict = {} for i in split_dialo
I want to merge one column into one string from 2D list. Are there better ways to merge it? lists = [['H', 'W'], ['e', 'o'], ['l', 'r'], ['l', 'l'], ['o','d']]
I'm creating a chatbot that asks questions and answers questions, but for now it doesn't have a specific function of answering specific questions that it asks i
I have a Pandas data frame that in one column called SourceDocument I have multiple lines of data in each cell (separated by \n). SourceDocuments PRDS-002039\nP
I want to automate a list that looks like this in python. weights = [x[0],x[1],x[2]] I have written code but it just gives the value of iteration. I want to
The objective of my application is to create a copy of documents and insert them into the database for each annotator, for example, let's say the master user ha
Here's what I want this code to do. Read the textfile random.txt into a List For each line of the textfile read into the list I want to determine if it is posit
In the original TI-BASIC (for TI-83/84+) is there a way to check if a list has been defined? Currently calling dim(⌊LIST) will return an error if the lis
I have a list in Python, and I want to check if any elements are negative. Specman has the has() method for lists which does: x: list of uint; if (x.has(it &l
I am trying to implement the following specification: busca.v.xs = <Min i : 0 ≤ i < #xs ∧ xs.i = v : i> I wrote something like the following. b
It is a list based on a solar measurement system so in the first hours of the day it will be 0 and in the last hours of the day it will be 0, so I am interested