Questions tagged as 'diccionarios'

1
answer

Query Exercise Arrays and Dictionaries JS

I am doing an introductory course in programming, we use JavaScript and the browser console for it, we saw types of data, operations, variables and their comparison, structures of selection and iteration, arrays, the theme is that I I have been...
asked by 01.08.2018 / 15:04
1
answer

Generate a list from the keys of a dictionary taking into account the values of these keys

For example if you have the following dictionary: {1:2, 2:3} I want to get the following list: [1, 1, 2, 2, 2] That is: there are as many "1" as values indicates the value of the key "1" (2) and as many "2" as values indicates the valu...
asked by 04.07.2018 / 03:44
1
answer

Linq on dictionary c #

I'm trying to make a linq on a dictionary to find a key, I have something like this, and I want to find the value of the "Hello" key: Dictionary<int, Dictionary<string, string> Datos = new Dictionary<int, Dictionary<string, stri...
asked by 21.05.2018 / 15:46
1
answer

As you attach two Python Dictionaries to another dictionary

I'm new to Python but I have a matrix of several columns column 0 has (01/02/18 to 02/28/1) the column in column 2 I have ('8-6 ENL TIC-DZT', '4-2 ENL PLD-STA-NRI ',' 6-12 ENL ALT-TMO ',' _0-16 MALPASODOS-TABASCO ',' 3-1 ENL MAN ',' 4-7 CHO 4...
asked by 16.02.2018 / 18:37
2
answers

Remove items from lists in the dictionary

I have the following code which is a dictionary with lists inside. What I want to do is erase a certain element from all the lists. For example: delete everything in position 2 of each list (bike, 2 and C). dicc={} dicc['lista1']=['coche',...
asked by 02.02.2018 / 11:42
1
answer

Dictionary Python call keys

I can not call my key name value. I get error: string indices must be integers, not str . I need if or if I use the for but I do not understand why I get that error diccionario = { "inventorysources":( { 'name': '...
asked by 09.11.2017 / 14:08
1
answer

Import values from a Dictionary to my Python variables

Inventory_data = {"Inventario_datos": {"Alti MW $ 2 |": {"Floor_price": '2.5', "Li_platform": 1, "Excel_name": "Alti MW $ 2.xlsx", "Li_Publisher": 2,...
asked by 06.10.2017 / 18:40
1
answer

List dictionary, tour Python values

I want to go through a dictionary that has lists within Lista = {'829690':['testmartin','--test$2--']} I need that in my function For key in ... read me testmartin and --test$2-- Here is everything I have to do with...
asked by 19.10.2017 / 00:22
1
answer

Python Iterar over JSON nested with variable values

Hi, my friends, please excuse me, you could help me iterate on this json that returns the request I made with requests but I already tried with items () and values () but nothing else sends me errors or at least tell me what I'm doing wrong was...
asked by 29.12.2018 / 06:17
0
answers

Can a Resource Dictionary be used in xaml to instantiate Page?

What happens is that I have a Datagris and I wanted to load it dynamically in a Page, like this example <GridView ItemsSource="{x:Bind Items}" ItemTemplate="{StaticResource ImageOverlayTemplate}" IsItemClickEnabled="False"...
asked by 15.11.2018 / 22:16