Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
| user:hof:pyeditor [2026-04-12 21:24] – [Exercises] hof | user:hof:pyeditor [2026-04-16 19:59] (aktuell) – hof | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| # Bottom Python Editor | # Bottom Python Editor | ||
| - | < | + | < |
| Bottom Editor offers a standalone editor version at [[https:// | Bottom Editor offers a standalone editor version at [[https:// | ||
| Zeile 191: | Zeile 191: | ||
| <code html> | <code html> | ||
| - | < | + | < |
| - | | + | < |
| - | <div slot="prompt"> | + | Write a function < |
| - | | + | |
| <tt>1 + 2 + & | <tt>1 + 2 + & | ||
| - | <tt>n ≤ 0</ | + | <tt>n ≤ 0</ |
| - | </div> | + | <script |
| - | < | + | |
| def sum_to(n): | def sum_to(n): | ||
| pass | pass | ||
| - | </template> | + | </script> |
| - | <template data-type=" | + | <script |
| assert sum_to(5) == 15, " | assert sum_to(5) == 15, " | ||
| assert sum_to(1) == 1, " | assert sum_to(1) == 1, " | ||
| assert sum_to(0) == 0, " | assert sum_to(0) == 0, " | ||
| - | </template> | + | </script> |
| - | </ | + | </ |
| </ | </ | ||
| - | < | + | < |
| - | + | Write a function < | |
| - | < | + | |
| - | <div slot=" | + | |
| - | | + | |
| <tt>1 + 2 + & | <tt>1 + 2 + & | ||
| - | <tt>n ≤ 0</ | + | <tt>n ≤ 0</ |
| - | </div> | + | <script |
| - | < | + | |
| def sum_to(n): | def sum_to(n): | ||
| pass | pass | ||
| - | </template> | + | </script> |
| - | <template data-type=" | + | <script |
| assert sum_to(5) == 15, " | assert sum_to(5) == 15, " | ||
| assert sum_to(1) == 1, " | assert sum_to(1) == 1, " | ||
| assert sum_to(0) == 0, " | assert sum_to(0) == 0, " | ||
| - | </template> | + | </script> |
| - | </ | + | </ |
| - | </ | + | |