Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
lehrkraefte:blc:informatik:ffprg1-2020:loops [2022/02/17 12:54] Ivo Blöchliger [break, continue] |
lehrkraefte:blc:informatik:ffprg1-2020:loops [2022/03/31 12:41] Ivo Blöchliger [Zeilenumbrüche] |
||
---|---|---|---|
Line 53: | Line 53: | ||
while True: | while True: | ||
| | ||
- | | + | |
</ | </ | ||
Line 93: | Line 93: | ||
print(" | print(" | ||
</ | </ | ||
- | Leider wird damit auch ein Leerschlag eingefügt. | + | Leider wird damit auch ein Leerschlag eingefügt. |
- | <code python> | + | |
- | import sys | + | |
- | + | ||
- | sys.stdout.write(" | + | |
- | sys.stdout.write(" | + | |
- | </ | + | |
- | Oder noch einfacher, man erstellt | + | Noch mehr Kontrolle hat man, wen man die ganze Zeile erst in einem String |
<code python> | <code python> | ||
zeile = "Die Zahlen 1" | zeile = "Die Zahlen 1" |