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-16 11:33] – [Exercises] hof | user:hof:pyeditor [2026-04-16 19:59] (aktuell) – hof |
|---|
| # Bottom Python Editor | # Bottom Python Editor |
| <html><script type="module" src="https://bottom.ch/editor/latest/bottom-exercise.js"></script></html> | <html><script type="module" src="https://bottom.ch/editor/stable/bottom-exercise.js"></script></html> |
| |
| Bottom Editor offers a standalone editor version at [[https://bottom.ch/editor/]] and a web component embeddable as normal HTML elements after loading the module once. See the [[https://bottom.ch/editor/stable/doc/|public documentation]] for all options. | Bottom Editor offers a standalone editor version at [[https://bottom.ch/editor/]] and a web component embeddable as normal HTML elements after loading the module once. See the [[https://bottom.ch/editor/stable/doc/|public documentation]] for all options. |
| |
| <code html> | <code html> |
| <html><script type="module" id="sum-to_n" src="https://bottom.ch/editor/latest/bottom-exercise.js"></script></html> | <html><script type="module" src="https://bottom.ch/editor/latest/bottom-exercise.js"></script></html> |
| <html><bottom-exercise> | <html><bottom-exercise id="sum-to_n"> |
| Write a function <tt>sum_to(n)</tt> that returns | Write a function <tt>sum_to(n)</tt> that returns |
| <tt>1 + 2 + … + n</tt>. Return <tt>0</tt> for | <tt>1 + 2 + … + n</tt>. Return <tt>0</tt> for |
| </code> | </code> |
| |
| <html><bottom-exercise> | <html><bottom-exercise id="sum-to_n"> |
| Write a function <tt>sum_to(n)</tt> that returns | Write a function <tt>sum_to(n)</tt> that returns |
| <tt>1 + 2 + … + n</tt>. Return <tt>0</tt> for | <tt>1 + 2 + … + n</tt>. Return <tt>0</tt> for |