Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| lehrkraefte:blc:informatik:glf25:labyrinthe:lib [2026/02/06 09:47] – [Aufgaben] Ivo Blöchliger | lehrkraefte:blc:informatik:glf25:labyrinthe:lib [2026/02/06 10:28] (current) – [Text] Ivo Blöchliger | ||
|---|---|---|---|
| Line 108: | Line 108: | ||
| mit '' | mit '' | ||
| - | **Zusatzaufgabe**: | + | **Zusatzaufgabe**: |
| <code python> | <code python> | ||
| + | # Vorgegebener Text | ||
| text = "Das geht auch voll automatisiert" | text = "Das geht auch voll automatisiert" | ||
| + | |||
| + | # Der Rest ist automatisch | ||
| woerter = text.split(" | woerter = text.split(" | ||
| anzahlWoerter = len(woerter) | anzahlWoerter = len(woerter) | ||
| + | |||
| + | lmax = max([len(w) for w in woerter]) | ||
| + | |||
| + | # ... | ||
| for index, wort in enumerate(woerter): | for index, wort in enumerate(woerter): | ||