I am trying to move 2 pairs of key-value "time:1000" and "time:5000" from below dictionary to upper level, and then delete the original one un
I'm making a pygame game, and whenever I run my code I get the error expected ':'. I am aware that using [ and ] in match/case blocks is used for something else
Hello I have a little problem. I am triying to build a swift dictionnary that will later be translated to json for a network code. A simpliflied version of the
I'm playing around with .Net Maui. I'd like to add a map to my demo app. Unfortunately it seems that the map control has not been migrated yet. Also it seems th
I have a list of names: names = ['london','paris'] and I have a list of dictionaries: data = [ { "_id": "ebef3cb1-9053-4d1e-b409-b682236445b7",
I have two dictionaries D1 = {('one', 'two'): 3, ('three', 'four'): 5, ('five', 'six'): 7, ('eight', 'nigh'):8} D2 = {'one':1, 'five': 2} I want to delete ('o
I am trying to get the sum of the values from a dictionary within a JSON file, but some of the values are a different data type. Only the values that are number
Get key by inputting the value of that key in C++ STL map<int,int> m; m[0]=8; m[8]=7; m[1562]=4; m[100]=1; auto i=m.find(1562); cout<
I want to fill my Map with two strings. For my Map I have to use <String, Object>. Using <String, String> would instantly solve my problem, but that
I've trying to convert list to tuples to customized list to dictionaries. I'm able toto divide admin, pack owner, submitter, consumer and read only. Please chec
I'm new to python and am looking for the best way to import a YAML file into Python and iterate through it to collect relevant appsettings for a specific instan
Is there any way to iterate over lists inside a dictionary. A key inside dictionary contains a list which needs to be iterated over separately from the other li
How can one append dictionaries that each looping generates to a list so at the end my function returns a list of n-dictionaries? Without any fancy libraries, j
Is there a valid Python syntax for the following idea: d = {_: 'value for any other key', 'x': 'value only for x key'} value = d[key] which should assign 'valu
Current output is of format, dictionary of lists { "majestic-service-1.324.02070909": [ "/home/robotics/arm-services/FeaturesDir.yaml", "/ho
After deleting an item from the database and updating the UI with hook, I am getting this error saying "Uncaught TypeError: inventories.map is not a function".
I have a python dictionary slot_a = 'a' slot_b = 'b' # dict which lists all possible conditions con_dict = {"branch_1": slot_a == 'a' and slot_b == 'b',
In the following code, I have defined a dictionary and then converted it to a dataframe my_dict = { 'A' : [1,2], 'B' : [4,5,6] } df = pd.DataFrame() df = df.app
I have this dictionary of lists of dictionaries (I cannot change the structure for the work): dict_countries = {'gb': [{'datetime': '1955-10-10 17:00:00', 'city
I need to give the correct schema to an rdd I have, but struggling with a maptype that has different valuetypes. I guess the problem is that one specific Key ha