Börjat lägga till kodexempel
This commit is contained in:
12
kapitel7/and-or-ex1.py
Normal file
12
kapitel7/and-or-ex1.py
Normal file
@@ -0,0 +1,12 @@
|
||||
x = 10
|
||||
y = 15
|
||||
|
||||
if ((x > 5) and (y < 10)):
|
||||
print("Jag kommer aldrig skrivas ut")
|
||||
|
||||
if ((x > 5) or (y < 10)):
|
||||
print("Däremot kommer jag att skrivas ut")
|
||||
|
||||
if ((x == 10) and (y > 12)):
|
||||
print("Jag kommer också att skrivas ut")
|
||||
|
Reference in New Issue
Block a user