Python Taskbook Level 3.10

Задание 1

Given a list and a number, leave in the list only those numbers that are divisors of the given number.

Задание 2

Given a list of numbers, after each single-digit number, insert another one of the same kind.

Задание 3

Given two numbers, get a list of digits that are in both numbers.

Задание 4

Given a number, get a list of the positions of all 3 digits in that number, excluding the first and last.

Задание 5

Given a list of numbers, leave the numbers that consist of different digits and delete the rest.

Задание 6

Two lists are given:

pythonlst1 = [1, 2, 3];
lst2 = [1, 2, 3, 4, 5];

Remove extra elements from the end of a larger list so that the lengths of the lists become the same.

Задание 7

Given a list with some numbers, for example, like this:

python[123, 456, 789]

Write code that will reverse the numbers in this list using the following principle:

python[321, 654, 987]