Seviyye 1.7 tapsiriq toplusu Python

Задание 1

Lugət verilib:

python{
  'a': 1,
  'b': 2,
  'c': 3, 
  'd': 4,
}

Bu lugatin elementlerinin cemini tapın.

Задание 2

Lugət verilib:

python{
  'a': 1,
  'b': 2,
  'c': 3, 
  'd': 4,
}

Bu lugatin elementlerinin kvadratlarının cemini tapın.

Задание 3

Setir verilib:

python'abcde'

Bu setirin herflerinden ibaret siyahı alın.

Задание 4

Eded verilib:

python12345

Bu ededin reqemlerinden ibaret siyahı alın.

Задание 5

Eded verilib:

python12345

Onu tersine çevirin:

python54321
Задание 6

Eded verilib:

python12345

Bu ededin reqemlerinin cemini tapın.