Niveau 4.5 Python Werkboek
Задание 1
Toon alle getallen in het bereik
van 10 tot 1000
in de console,
waarvan het voorlaatste cijfer
even is.
Задание 2
Gegeven een string:
python'''
text1
text2
text3
text4
text5
'''
Splits deze string in een lijst zodat elke niet-lege tekstregel een apart element van de lijst wordt:
python[
'text1',
'text2',
'text3',
'text4',
'text5',
]
Задание 3
Gegeven de volgende dictionary:
pythondct = {
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,
},
},
}
Vind de som van alle elementen in deze dictionary.