Python Taskbook Level 10.3

Задание 1

You are given a tuple of six digits. Check if you can assemble a lucky ticket from these digits.

Задание 2

Write a code that will generate a password of a given size. The password must contain a small and large letter, a number and some special symbol.

Задание 3

Given two numbers, display the process of dividing these numbers in a column, as in school.

Задание 4

Given a string containing two numbers and a mathematical operation between them:

python'10 + 20'

Write code that will calculate the result of the written mathematical operation.

Задание 5

Given an arbitrary two-dimensional list:

python[
  [11, 12, 13],
  [21, 22, 23],
  [31, 32, 33],
]

Write some code that will add another row and another column to it, filled with random values:

python[
  [11, 12, 13, 14],
  [21, 22, 23, 24],
  [31, 32, 33, 34],
  [41, 42, 43, 44],
]