I am attempting to use the SonarCloud API to automatically give me a list of all users in my organization. Eventually I would like to automate it in an AzureDevOps Pipeline, so getting the list of users using curl (or ...
Home/list
Softans Latest Questions
I have the below list called My_list and want to convert it to a dictionary called My_dict. My_list=['I=113','PLAN=1','A=0PDFGB','B=23FGC','C=26TGFGD','D=19TGE','E=18TGA', 'I=120','PLAN=2','A=0PDFGB','B=23FGC','C=26TGFGD','D=19TGE','E=18TGA'] the output should be as below: My_dict={'I=113': ['PLAN=1', 'A=0PDFGB', 'B=23FGC', 'C=26TGFGD','D=19TGE', 'E=18TGA'], ...
I have a list like this df = [‘20180001\tJane\t84\t73\n’, ‘20180002\tLee\t92\t89\n’, ‘20180007\tSteve\t57\t62\n’, ‘20180009\tDonald\t81\t84\n’, ‘20180011\tLuke\t58\t68\n’] and I put it in to the dictionary with this code: temp_dict = {} for i in range(len(df)): temp_dict[df[i].split(“\t”)[0]] ...