Skip to content

Commit

Permalink
Use links in Czech
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Oct 16, 2023
1 parent 291f03c commit 95595e0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/modern_python.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Python 3.12 klíčové slovo type + sémantika

* Přidáno do Pythonu 3.6
* Lze využít společně s původním formátováním
* Prefix f""
* Prefix `f""`
- proto se nazývají f-strings

---
Expand All @@ -113,7 +113,7 @@ c=a+b
print(f"{a}+{b}={c}")
```

[Source code](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-1.py)
[Zdrojový kód příkladu](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-1.py)

---

Expand All @@ -128,7 +128,7 @@ b=2
print(f"{a}+{b}={a+b}")
```

[Source code](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-2.py)
[Zdrojový kód příkladu](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-2.py)

---

Expand All @@ -144,7 +144,7 @@ print(f"Kladné: {'ano' if a>0 else 'ne'}")
print(f"Kladné: {'ano' if b>0 else 'ne'}")
```

[Source code](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-3.py)
[Zdrojový kód příkladu](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-3.py)

---

Expand All @@ -156,7 +156,7 @@ x = "Hello world!"
print(f"Délka '{x}' je {len(x)} znaků")
```

[Source code](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-4.py)
[Zdrojový kód příkladu](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-4.py)

---

Expand All @@ -168,7 +168,7 @@ x = "hello world!"
print(f"Zpráva pro vás: '{x.capitalize()}'")
```

[Source code](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-5.py)
[Zdrojový kód příkladu](https://github.com/tisnik/most-popular-python-libs/blob/master/modern_python/sources//f-string-5.py)

---

Expand Down

0 comments on commit 95595e0

Please sign in to comment.