From 8a379434fabd714358d307aa73a671e8a30978d7 Mon Sep 17 00:00:00 2001 From: "Dawid J. Kubis" Date: Wed, 9 Oct 2019 22:41:10 +0200 Subject: [PATCH] jebat; nechce se mi psat tu sumu tak jsem ji odstranil, je to stejne skoro to samy jako umocnovani; taky dodelano while.md --- 2/suma.py | 0 2/while.md | 15 +++++++++++++++ 2 files changed, 15 insertions(+) delete mode 100644 2/suma.py diff --git a/2/suma.py b/2/suma.py deleted file mode 100644 index e69de29..0000000 diff --git a/2/while.md b/2/while.md index b8e353a..23e6bb2 100644 --- a/2/while.md +++ b/2/while.md @@ -1 +1,16 @@ # While + +Bere booleanovský výraz jako argument. +Loopuje dokud je výraz `True`. + +```python +while True: + print('tohle bezi donekonecna') +``` + +```python +i = 0 +while i < 10 + print(i) # tohle se provede 10krat + i += 1 +```