Nível 4.8 do livro de exercícios Python

Задание 1

Forme usando loops a seguinte lista:

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

Forme usando loops a seguinte lista:

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

Dada a string:

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

Remova todas as linhas vazias que não estão no início e nem no final do texto:

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