Python Taskbook Level 7.3

Задание 1

You are given a text file. It contains text and numbers. Square each of these numbers and write the result back to the same file.

Задание 2

Given a folder with files. Delete all files with a given extension from this folder.

Задание 3

Given a list, write the elements of this list to a file so that each element is written on a new line.

Задание 4

Make a function that will return a list filled with N random numbers from a given range such that the numbers do not repeat.