|
|
@ -11,3 +11,40 @@ True
|
|
|
|
>>> 2 > 3
|
|
|
|
>>> 2 > 3
|
|
|
|
False
|
|
|
|
False
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `==`, `!=` - rovnost, nerovnost
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
>>> 2 == 2
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
>>> 2 != 3
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `and`, `or` - logické 'a' a 'nebo'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
>>> True and True
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
>>> True and False # a obracene
|
|
|
|
|
|
|
|
False
|
|
|
|
|
|
|
|
>>> False and False
|
|
|
|
|
|
|
|
False
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
>>> True or True
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
>>> True or False # a obracene
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
>>> False or False
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `not` - negace
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
|
|
|
>>> not True
|
|
|
|
|
|
|
|
False
|
|
|
|
|
|
|
|
>>> not False
|
|
|
|
|
|
|
|
True
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|