Nivelul 4.9 al sarcinilor Python

Задание 1

Formați folosind bucle următoarea listă:

python[
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
]
Задание 2

Dat fiind textul:

python'''
  a-1
  b-2
  c-3
  d-4
  e-5
'''

Împărțiți acest șir într-un dicționar în felul următor:

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