0

dictionary

hi how can i do this that i have explained below d = {'a':[[10,20,14,12], [ 11 , 14 ,13 ,14]]} i have dic like this and i want to use values of key 'a' for example i want to sum 10+20+14+12 or sth else how can i do?

7th Jun 2020, 6:32 PM
nima rasi
2 odpowiedzi
+ 3
sum(d['a' ][0])
7th Jun 2020, 6:37 PM
Oma Falk
Oma Falk - avatar
0
Thanks @kiibo Ghayal @oma falk
7th Jun 2020, 6:39 PM
nima rasi