Posts by Yuri Pastore Aranha • 31 points
4 posts
-
0
votes2
answers80
viewsA: Update Dict in List Comprehensions
I called a friend and explained the case. He suggested me use the operated or when the dict.update() return None the expression consider the return as what comes after: solution: def…
-
-1
votes2
answers80
viewsQ: Update Dict in List Comprehensions
I have some dictionaries that I need to fill recursively and for that I would like to use list comprehensions this way list_dict = [{'a':'b'},{'a':'c'}] list_dict = [dict.update({'b':dict['a']}) for…
-
0
votes3
answers67
viewsA: AWS Lambda Function
Use the S3 SDK to upload, there are several supported languages and it will be much cheaper. If you have never used do some testing with the CLI first, it will help a lot.…
awsanswered Yuri Pastore Aranha 31 -
2
votes1
answer580
viewsQ: break list by python size
Today I came across the need to break a list of over 100 values in a list of lists with a maximum of 100 values. I researched a lot, and in the end I put together the function: remove_list=[[]] n=0…