Nivelul 4.8 de probleme Python

Задание 1

Formați folosind bucle următorul list:

python[
  ['x', 'x', 'x'],
  ['x', 'x', 'x'],
  ['x', 'x', 'x'],
]
Задание 2

Formați folosind bucle următorul list:

python[
  [1, 2, 3],
  [1, 2, 3],
  [1, 2, 3],
  [1, 2, 3],
  [1, 2, 3],
]
Задание 3

Dat fiind un șir de caractere:

python'''
  text1
  text2
  
  text3
  text4
  
  text5
'''

Ștergeți toate liniile goale din el, care nu se află la început și nu la sfârșitul textului:

python'''
  text1
  text2
  text3
  text4
  text5
'''