# Python


:::::::::::::::{admonition} Kodeskall for ulike temaer
---
class: summary, dropdown
---
For å få et bestemt kodeskall, skriver du nøkkelordet som vises i gif-ene og trykker på Enter. Deretter bruker du *TAB*-knappen for å hoppe mellom de ulike delene av kodeskallet som må fylles ut.

::::::::::::::{tab-set}


:::::::::::::{tab-item} `print`{l=python}-utsagn
Nøkkelord: `print`{l=python}

:::{figure} ./code_snippets/print.gif
---
class: no-click, adaptive-figure
width: 100%
---
:::


:::::::::::::


:::::::::::::{tab-item} `for`{l=python}-løkker
Nøkkelord: `for`{l=python}

:::{figure} ./code_snippets/for-loop.gif
---
class: no-click, adaptive-figure
width: 100%
---
:::


:::::::::::::


:::::::::::::{tab-item} Summere tall
Nøkkelord: `sum`{l=python}

:::{figure} ./code_snippets/sum.gif
---
class: adaptive-figure, no-click
width: 100%
---
:::


:::::::::::::


:::::::::::::{tab-item} `if`{l=python}-test
Nøkkelord: `if`{l=python}

:::{figure} ./code_snippets/if_test.gif
---
class: no-click, adaptive-figure
width: 100%
---
:::


:::::::::::::


:::::::::::::{tab-item} `if`{l=python}-`else`{l=python}-test
Nøkkelord: `if-else`{l=python}

:::{figure} ./code_snippets/if_else.gif
---
class: no-click, adaptive-figure
width: 100%
---
:::


:::::::::::::

:::::::::::::{tab-item} Funksjoner
Nøkkelord: `funksjon`{l=python}

:::{figure} ./code_snippets/funksjoner.gif
---
class: no-click, adaptive-figure
width: 100%
---
:::

:::::::::::::


::::::::::::::

:::::::::::::::



:::{interactive-code}
# Din kode her




:::