Python Taskbook Level 1.7
Задание 1
Given a dictionary:
python{
'a': 1,
'b': 2,
'c': 3,
'd': 4,
}
Find the sum of the elements of this dictionary.
Задание 2
Given a dictionary:
python{
'a': 1,
'b': 2,
'c': 3,
'd': 4,
}
Find the sum of the squares of the elements of this dictionary.
Задание 3
Given a line:
python'abcde'
Get a list of letters in this string.
Задание 4
Given a number:
python12345
Get a list of digits of this number.
Задание 5
Given a number:
python12345
Turn it over:
python54321
Задание 6
Given a number:
python12345
Find the sum of the digits of this number.