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