0
Picking random from dictonary
I have a dictonary a={"a":23,"b":27,"c":30,"d":20} and want to pick the numbers whose sum is 50 and print its key and value.
1 Resposta
+ 2
This is pretty similar to this challenge:
https://www.sololearn.com/learn/4755/
All you have to do is put all the values in a list, find the subset that sums 50 and get their correspoding keys.