Börjat lägga till kodexempel
This commit is contained in:
8
kapitel7/if-ex3.py
Normal file
8
kapitel7/if-ex3.py
Normal file
@@ -0,0 +1,8 @@
|
||||
x = 15
|
||||
if (x > 10):
|
||||
print(str(x) + " är större än 10")
|
||||
elif (x < 5):
|
||||
print(str(x) + " är mindre än 5")
|
||||
else:
|
||||
print(str(x) + " ligger mellan 5 och 10")
|
||||
|
Reference in New Issue
Block a user