Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
lehrkraefte:blc:informatik:glf20:programmieren:while [2020/10/30 13:16] mirco.triner [Lösungsvorschläge] |
lehrkraefte:blc:informatik:glf20:programmieren:while [2020/10/30 13:19] mirco.triner |
||
---|---|---|---|
Line 18: | Line 18: | ||
print(counter) | print(counter) | ||
counter += 1 | counter += 1 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | Die folgenden Codeblöcke führen zum gleichen Ergebnis: | ||
+ | < | ||
+ | counter += 1 | ||
+ | </ | ||
+ | < | ||
+ | counter = counter + 1 | ||
</ | </ | ||
</ | </ | ||
Line 110: | Line 120: | ||
<code python> | <code python> | ||
+ | #Zahl zwischen 1-100 | ||
to_be_guessed = input(" | to_be_guessed = input(" | ||
guess = 50 | guess = 50 |