Teil 2 Beispiele.
This commit is contained in:
10
teil2/elif.py
Normal file
10
teil2/elif.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# coding=utf-8
|
||||
|
||||
zahl = 99
|
||||
|
||||
if zahl == 100:
|
||||
print ('Zahl ist einhundert.')
|
||||
elif zahl > 100:
|
||||
print('Zahl ist grösser als einhundert.')
|
||||
else:
|
||||
print('Zahl ist kleiner als einhundert.')
|
Reference in New Issue
Block a user