Here are some hints:
For the first one,
len() returns the number of characters in a string. And since (di2[xxxx]) is already given, xxxx must be within di2. Also, since it's a dictionary, you should write the key which holds the value to get the value of the key.
For the second one,
In the for loop, "i" (since it is after for and before in) will hold the value of the key being iterated over. So it will have 41 in the first loop instance, 42 in the second and 43 in the third. What is 41+42+43?
Solving such questions is a great way to learn. Keep it up! :D
For the first one,
len() returns the number of characters in a string. And since (di2[xxxx]) is already given, xxxx must be within di2. Also, since it's a dictionary, you should write the key which holds the value to get the value of the key.
For the second one,
In the for loop, "i" (since it is after for and before in) will hold the value of the key being iterated over. So it will have 41 in the first loop instance, 42 in the second and 43 in the third. What is 41+42+43?
Solving such questions is a great way to learn. Keep it up! :D