Skip to content

Commit

Permalink
Tolle Schleifen
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDiver committed Sep 30, 2024
1 parent 8f50a7e commit 1bc1bfc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lecture/04_Schleifen/04_Schleifen.tex
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ \subsection{Elemente Entfernen}
\section{While-Schleife}
\subtitle{Schleifen mit Listen}


\begin{frame}[fragile]
\slidehead
Wir können mit Schleifen über Listenelemente laufen und diese weiter verarbeiten
Expand Down
2 changes: 1 addition & 1 deletion lecture/04_Schleifen/listings/listen_for.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tolle_liste = [5, 1, 4, 2, 3]
for x in tolle_liste:
print(x, end=" | ")
print(x)
2 changes: 1 addition & 1 deletion lecture/04_Schleifen/listings/listen_while.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
i: int = 0
tolle_liste = [5, 1, 4, 2, 3]
while i < len(tolle_liste):
print(tolle_liste[i], end=" | ")
print(tolle_liste[i])
i = i + 1
2 changes: 1 addition & 1 deletion lecture/04_Schleifen/listings/listen_while_output.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5 | 1 | 4 | 2 | 3 |
5 1 4 2 ⏎ 3
Empty file.

0 comments on commit 1bc1bfc

Please sign in to comment.