Python Taskbook Level 4.8
Use loops to generate the following list:
[
['x', 'x', 'x'],
['x', 'x', 'x'],
['x', 'x', 'x'],
]
Use loops to generate the following list:
[
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
[1, 2, 3],
]
Given a line:
'''
text1
text2
text3
text4
text5
'''
Remove all empty lines from it that are not at the beginning or end of the text:
'''
text1
text2
text3
text4
text5
'''