Python Taskbook Level 4.5
Print to the console all numbers in the range from 10 to 1000, whose second-to-last digit is even.
Given a line:
'''
text1
text2
text3
text4
text5
'''
Split this line into a list so that each non-empty line of text becomes a separate list item:
[
'text1',
'text2',
'text3',
'text4',
'text5',
]
The following dictionary is given:
dct = {
1: {
1: {
1: 111,
2: 112,
3: 113,
},
2: {
1: 121,
2: 122,
3: 123,
},
},
2: {
1: {
1: 211,
2: 212,
3: 213,
},
2: {
1: 221,
2: 222,
3: 223,
},
},
3: {
1: {
1: 311,
2: 312,
3: 313,
},
2: {
1: 321,
2: 322,
3: 323,
},
},
}
Find the sum of the elements of this dictionary.