Practicing the studied material on working with dictionaries in Python

Задание 1

Given a dictionary:

pythondct = {
  'x': '1',
  'y': '2',
  'z': '3'
}

Find the sum of the squares of the elements of this dictionary.

Задание 2

The following dictionaries are given:

pythondct1 = {
  '1': 12,
  '2': 24,
  '3': 36
}

dct2 = {
  'a': '3',
  'b': '6',
  'c': '9'
}

Add up the values ​​of each dictionary. Then subtract the second sum from the first.

Задание 3

Given a dictionary:

pythondct = {
  1: '4',
  2: '5',
  3: '6'
}

Convert all its values ​​to strings.

Задание 4

Given a dictionary:

pythondct = {
  'x': 1,
  'y': 2,
  'z': 3
}

Add the elements of this dictionary as strings:

python'123'
Задание 5

Given a dictionary:

pythondct = {
  'a': 7,
  'b': 6,
  'c': 5
}

Add the elements of this dictionary as strings:

python'5/6/7'
Задание 6

Given a dictionary with a date:

pythondct = {
  'y': 2025,
  'm': 12,
  'd': 31
}

Add the elements of this dictionary to form the following date:

python'2025-12-31'