Python Taskbook Level 7.10

Задание 1

You are given a text file. Check that this file has one blank line at the beginning and two blank lines at the end.

Задание 2

Write a function that will take a path to a folder as a parameter and return the size of this folder.

Задание 3

Given a folder with files and subfolders. Get paths to all files in the folder and subfolders. Write the result to a new file, each path on a new line.

Задание 4

You are given a text file. It contains a text divided into sentences. Mix the words in each sentence of the text and write the resulting text into a new file.

Задание 5

Make a function that will delete a folder along with all its contents.

Задание 6

Write a program that will generate the following string:

python'-x-xx-xxx-xx-x-'
Задание 7

Write a program that will generate the following string:

python'11 12 13 21 22 23 31 32 33'