Nível 4.8 do livro de exercícios Python
Forme usando loops a seguinte lista:
[
['x', 'x', 'x'],
['x', 'x', 'x'],
['x', 'x', 'x'],
]
Forme usando loops a seguinte lista:
[
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
]
Dada a string:
'''
text1
text2
text3
text4
text5
'''
Remova todas as linhas vazias que não estão no início e nem no final do texto:
'''
text1
text2
text3
text4
text5
'''