Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| lehrkraefte:blc:informatik:glf25:labyrinthe:wegfindung [2026/03/17 08:57] – [Wegfindungsalgorithmen] Ivo Blöchliger | lehrkraefte:blc:informatik:glf25:labyrinthe:wegfindung [2026/03/17 08:58] (current) – [Dictionary nach Markierungen] Ivo Blöchliger | ||
|---|---|---|---|
| Line 77: | Line 77: | ||
| nachbarn[nb.mark] = [nb] # Sonst neue Liste mit einem Eintrag | nachbarn[nb.mark] = [nb] # Sonst neue Liste mit einem Eintrag | ||
| | | ||
| + | </ | ||
| + | ==== Testen, ob ein Dictionary einen Schlüssel hat ==== | ||
| + | <code python> | ||
| + | d = {" | ||
| + | if " | ||
| + | | ||
| + | if not " | ||
| + | | ||
| </ | </ | ||