⊗pyPmDcPrm 105 of 208 menu

Practicing the studied material on working with dictionaries in Python

Given a dictionary:

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

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

The following dictionaries are given:

dct1 = { '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.

Given a dictionary:

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

Convert all its values ​​to strings.

Given a dictionary:

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

Add the elements of this dictionary as strings:

'123'

Given a dictionary:

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

Add the elements of this dictionary as strings:

'5/6/7'

Given a dictionary with a date:

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

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

'2025-12-31'
byenru