From abccc60c9c3ba7fcce302211d5f976591ba8a9ac Mon Sep 17 00:00:00 2001 From: "Dawid J. Kubis" Date: Fri, 27 Sep 2019 20:51:04 +0200 Subject: [PATCH] myslim ze hotovo --- 1/bool_vyrazy.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/1/bool_vyrazy.md b/1/bool_vyrazy.md index b5eed58..ee89449 100644 --- a/1/bool_vyrazy.md +++ b/1/bool_vyrazy.md @@ -11,3 +11,40 @@ True >>> 2 > 3 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 +``` +