Skip to content

Commit

Permalink
fix: operaveny logické operátory
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamFiser committed Oct 15, 2024
1 parent 8783bd4 commit 3ce396a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions slides/07_ridici_struktury/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ layout: default
# Logické operátory


- `&&` (and) logický součin - obě hodnoty musejí být splněny
- `||` (or) logický součet - alespoň jedna hodnota musí být splněna
- `not` (negace) - negace hodnoty
- `and` logický součin - obě hodnoty musejí být splněny
- `or` logický součet - alespoň jedna hodnota musí být splněna
- `not` negace hodnoty

---

Expand Down Expand Up @@ -185,9 +185,6 @@ else:
- Výsledek je `True` pokud je alespoň jedna podmínka `True`





```python
if( a==1 or b==0 ): # Vypíše ano
print("ano")
Expand Down Expand Up @@ -247,7 +244,7 @@ Výstup:
- `range()` - vytvoří posloupnost čísel

```python
#funkce range generuje sekvenci celých čísel
# funkce range generuje sekvenci celých čísel
range(start, stop, step)
Stop je povinný

Expand Down

0 comments on commit 3ce396a

Please sign in to comment.