00:01
Hello student here two directories are given the weight directory and the available directory.
00:05
In the weight directory maximum values according to their weight are given pencil, pen, paper, eraser.
00:11
These are the four items and their values or their keys are 10, 20, 4 and 80.
00:18
And in the available directory according to item keys are 3, 5 to 10.
00:24
So what we have to do in the both directory we have to multiply according to the items.
00:32
So first suppose i am taking the pencil so in the second directory pencil is 5 in the first 10.
00:39
So these both will be multiplied.
00:41
Now after multiplying now we have to add the second one here pen is 20 in the second directory pen is 3.
00:48
So these two values these two keys will be multiplied and their product will be that will be added to the 50.
00:55
In the similar way paper its product will come 160 when we multiply the key value of the both directory and eraser.
01:02
So in this way my values will my key values are coming 50, 60, 160 and 40 and their sum will be 310.
01:12
So for this i have written the python program total underscore weight at the starting is zero which will calculate my total sum.
01:19
So here first i will take the key...