Skip to content

Instantly share code, notes, and snippets.

@drizzd
Last active August 29, 2015 14:12
Show Gist options
  • Save drizzd/3a0ddf11799c64bdb57d to your computer and use it in GitHub Desktop.
Save drizzd/3a0ddf11799c64bdb57d to your computer and use it in GitHub Desktop.
#
# 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