0

Please guys how do i iterate through a dictionary and find it's sum of the key values

example main = {'a': 2, 'b': 12} please using for loop is there anyway i can iterate through this dictionary and find the sum of its values, while multiplying them by 3?

29th Jul 2019, 10:49 AM
Primidac
Primidac - avatar
3 Answers
29th Jul 2019, 10:59 AM
Trigger
Trigger - avatar
+ 1
wow... Thanks so much now i can finish my project...
29th Jul 2019, 2:23 PM
Primidac
Primidac - avatar
0
Primidac No problemđŸ‘đŸŒ
29th Jul 2019, 3:02 PM
Trigger
Trigger - avatar