Questions tagged as 'diccionarios'

0
answers

How to make a node of a larger grapho in python

I have an excell file of twitter users, and my program already draws me the graphic, later, I make a random walk, (where I'm going to see what route it made) I keep it in a dictionary, but I want the users that more they were visited have a larg...
asked by 25.10.2018 / 04:32
0
answers

How to use the OnPropertyChange in C #? [UWP]

What happens is that I have this property: [Display(Name = "Codigo EAN-UCC", Description = "Codigo EAN-UCC para recaudos por codigo de barras", GroupName = "Tesoreria")] public string TESORERIA_CODEANUCC { get { return (Get() == null ? "" : (s...
asked by 22.10.2018 / 15:03
1
answer

POST form params In API REST

I have to store the data in a BD that sends me an API, this API sends me a POST request to my server with the data as parameters Literal the documentation tells me that "the following parameters as form params" { "solicitud": { "dato1":...
asked by 12.10.2018 / 15:02
2
answers

I need to extract the key from a dictionary to save it in a variable

I'm doing a program in which using the list of dictionaries, I need to extract separately the values "tag", "attribute" and "Value". I have managed to get the values of "tag" and "value", but I am not able to extract the value "attribute" becaus...
asked by 15.10.2018 / 10:42
1
answer

Add operate with dictionary values

I want to make a small converter of letters to numbers (encrypted type). I have created a dictionary with each letter, assigning it a value. The intention is that the user write a word and the program translates the letters into numbers, add it...
asked by 10.09.2018 / 10:46
0
answers

Create CSV from a list of Dictionaries and enclose the data

I have a list of dictionaries like this: lotes = [{'lote': '30045612', 'producto':'nombre_producto1'}, {'lote': '30045613', 'producto':'nombre_producto2'}, {'lote': '30045614', 'producto':'nombre_producto3'}, {'lote'...
asked by 23.08.2018 / 15:21
1
answer

Create dicconario list from iteration in cycle for

I come with my second question, I'm just getting started in programming in python. To the point: I'm iterating over the data from a list of dictionaries, and I need to create another list of dictionaries with certain data that I select. Th...
asked by 09.08.2018 / 21:13
2
answers

User orders a dictionary in python

I'm starting in python, and I need to make a program where the elements of a dictionary will be displayed randomly (randomly), and then the user will have to sort them. The dictionary is ready, but I can not think of how to do it so the user can...
asked by 12.07.2018 / 00:16
1
answer

Key Error creating a nested dictionary within IF statement

I am running a piece of code that does not present any problem to me when executing it out of the if sentence but when entering it to the sentence it throws me: Traceback (most recent call last): if self.genero in self.DiccionarioRe...
asked by 20.02.2018 / 21:36
1
answer

Write dictionary in text file

Hello, I am trying to write a dictionary, with name and phone data, in a text file and I can not achieve it. My dictionary is of the type: agenda = {"Juan": 14253, "Mariano": 24875, "Marcos": 65232} and what I did was this: agenda={"Juan":1425...
asked by 10.12.2017 / 20:13