Last active
August 29, 2015 14:12
-
-
Save drizzd/3a0ddf11799c64bdb57d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 2.1 if-Anweisungen | |
# | |
if Hunde == 5: | |
print('Viele Hunde') | |
if Hunde == 0: | |
print('Kein Hund') | |
else: | |
print('Ein oder mehrere Hunde') | |
if Hunde == 0: | |
print('Kein Hund') | |
elif Hunde == 1: | |
print('Ein Hund') | |
else: | |
print('Mehr als ein Hund') | |
# 2.2 For-Schleife | |
for i in range(10): | |
print(i) | |
# 2.3 Listen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment