Compare commits
2 Commits
Author | SHA1 | Date |
---|---|---|
Olli Graf | f421a8abd6 | 5 months ago |
Olli Graf | 0c76dc11d7 | 5 months ago |
3 changed files with 21 additions and 0 deletions
@ -0,0 +1,10 @@ |
|||
# Ohne Walross-Operator |
|||
n = 0 |
|||
while n < 10: |
|||
n += 1 |
|||
print(n) |
|||
|
|||
# Mit Walross-Operator |
|||
n = 0 |
|||
while (n := n + 1) <= 10: |
|||
print(n) |
@ -0,0 +1,10 @@ |
|||
# Ohne Walross-Operator |
|||
n = 0 |
|||
while n < 10: |
|||
n += 1 |
|||
print(n) |
|||
|
|||
# Mit Walross-Operator |
|||
n = 0 |
|||
while (n := n + 1) < 10: |
|||
print(n) |
Loading…
Reference in new issue