64 of 100 menu

Python Taskbook Level 7.4

Given a text file, write the current time at the end of its text, starting with a new line.

Given a folder with files, get the names of all the images in this folder.

A text file is given. The user is asked for a word via the console. Check if the word is in the file.

The folder contains text files. Get the first N lines of text from each file and write the result to a new file, separating the resulting texts with empty lines.

Given a folder with files, write a program that will make all text files in this folder empty.

Given a list containing file names, write a program that will create all the files from the list in a given folder.

Ask the user for a number with an even number of digits. Check that the number is a lucky ticket, i.e. the sum of half the digits is equal to the sum of the other half of the digits.

Write a program that will generate the following list:

[ [1], [1, 2], [1, 2, 3], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5, 6], ]
enru