Logical NOT in Python

The logical NOT is used to denote negation in a condition. It is written using the construction not.

Let us have a variable:

pythontst = 2

Let's set a condition - is the variable greater than 0 and at the same time not less than 1:

pythonif tst > 0 and not tst < 1:
  print('+++') # this will work
else:
  print('---')
Задание 1

The following code is given:

pythontst = 15

if tst > 20 and not tst < 10:
  print('+++')
else:
  print('---')

Tell me what will be output to the console.

Задание 2

The following code is given:

pythontst1 = -8
tst2 = 10

if tst1 > -10 and not tst2 < 10:
  print('+++')
else:
  print('---')

Tell me what will be output to the console.